You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In DELETE /store/order/{orderId} the orderId-parameter has a minimum value set to 1.0, but the type is string. Is this possible in Swagger 2.0? The JSON-Schema-Spec says that minimum needs to be a number, so I would say, that type also needs to be a numeric type (i.e. integer, long, double or float)
In GET /store/order/{orderId} the orderId-parameter is of type integer (int64), the description text says "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", but the definition says { minimum: 1.0, maximum: 5.0 }. Is it even possible to define what the description says?
The text was updated successfully, but these errors were encountered:
I won't submit a pull request at the moment. If it would just be about changing a swagger-definition, that would be ok (2 clicks and some editing in the github editor). But cloning a java-project, making the changes and test if the sample is still working. That's too much effort for me at the moment, just to make an example nice.
Hi,
I don't know which project contains the example from http://petstore.swagger.io/v2/swagger.json, but I've found some inconsistencies that might need to be corrected:
DELETE /store/order/{orderId}
theorderId
-parameter has aminimum
value set to1.0
, but thetype
isstring
. Is this possible in Swagger 2.0? The JSON-Schema-Spec says thatminimum
needs to be a number, so I would say, thattype
also needs to be a numeric type (i.e. integer, long, double or float)GET /store/order/{orderId}
theorderId
-parameter is of typeinteger
(int64), the description text says "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", but the definition says{ minimum: 1.0, maximum: 5.0 }
. Is it even possible to define what the description says?The text was updated successfully, but these errors were encountered: