Skip to content

Petstore-Example: minimum/maximum definitions inconsistent #1458

@nknapp

Description

@nknapp

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:

  • 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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions