Swagger-ui不显示“限制”查询parm的最小值和最大值?

时间:2017-05-19 23:03:28

标签: swagger swagger-ui swagger-editor

以下是JSON对象的外观,我无法获得显示的限制查询部分的最大值和最小值:

        "parameters": [
      {
        "name": "limit",
        "in": "query",
       "description": "How many items to return at one time (max 100)",
        "minimum": 0,
        "maximum": 63333,
        "required": false,
        "type": "integer",
        "format": "int32"
      }
    ],

1 个答案:

答案 0 :(得分:1)

我认为这是Swagger-UI(possibly you located the same issue?)的问题。

但是,我尝试使用ReDoc并正确渲染范​​围的最小值/最大值。