Swagger 招摇过市OAS 3.0中的排他性最小值不适用
大摇大摆的编辑给了我这样的回答:Swagger 招摇过市OAS 3.0中的排他性最小值不适用,swagger,openapi,swagger-editor,Swagger,Openapi,Swagger Editor,大摇大摆的编辑给了我这样的回答: [ { "simulation_run_id": 0 } ] 定义: /v1/simulation-run-submissions: post: summary: 'Post a simulation run creation TODO: Will need to update API with parameters weather file, glmfile, name, start,end,interval, etc
[
{
"simulation_run_id": 0
}
]
定义:
/v1/simulation-run-submissions:
post:
summary: 'Post a simulation run creation TODO: Will need to update API with parameters weather file, glmfile, name, start,end,interval, etc.. check wireframe. Submit model file and get back validation and ID. We will use the same API above and just return validation error.'
#description:
responses:
'201':
description: The metadata for a simulation run
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/SimulationRunSubmissionResponse'
...
components:
schemas:
SimulationRunId:
type : integer
format: int64
minimum: 1
exclusiveMinimum: true
exclusiveMinimum
选项似乎没有应用于架构,因为示例显示为0。当前的招摇过市UI和招摇过市编辑器在生成请求和响应示例时不使用最小值和exclusiveMinimum
值。请随意
最简单的解决方案是手动指定示例
:
组件:
模式:
模拟运行ID:
类型:整数
格式:int64
最低限额:1
排他性最小值:真的
示例:2#