Swagger error: additionalProperty: 3XX, 4XX, 5XX -
i have added added few error code in swagger responses section: 201, 3xx, 400, 401, 4xx, 5xx.
also, per swagger2.0 doc can have: "the following range definitions allowed: 1xx, 2xx, 3xx, 4xx, , 5xx. if response range defined using explicit code, explicit code definition takes precedence on range definition code."
but still error: "should not have additional properties. additionalproperty: 3xx, 4xx, 5xx"
any clue?
that quote openapi 3.0 specification, not 2.0.
the 2.0 spec not support wildcard response codes. need use specific codes, such 200
, 400
, 404
, etc., , can use default
response match http codes not covered individually spec.
Comments
Post a Comment