6016-oas2.yaml 578 B

1234567891011121314151617181920212223242526272829
  1. swagger: "2.0"
  2. info:
  3. description: "OAS2 sample with entries as property name"
  4. version: "0.0.1"
  5. title: "Swagger Sample"
  6. paths:
  7. /pet:
  8. post:
  9. summary: "Add a new pet to the store"
  10. description: ""
  11. parameters:
  12. - in: "body"
  13. name: "body"
  14. schema:
  15. $ref: "#/definitions/Pet"
  16. responses:
  17. "405":
  18. description: "Invalid input"
  19. definitions:
  20. Pet:
  21. type: "object"
  22. properties:
  23. id:
  24. type: "integer"
  25. entries: # <-- evaluate
  26. type: "array"
  27. items:
  28. type: "string"