petstore-badproperties.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. swagger: "2.0"
  2. info:
  3. title: Swagger Petstore
  4. myproperty: 123
  5. license:
  6. name: MIT
  7. host: petstore.swagger.io
  8. basePath: /v1
  9. schemes:
  10. - http
  11. consumes:
  12. - application/json
  13. produces:
  14. - application/json
  15. paths:
  16. /pets:
  17. get:
  18. summary: List all pets
  19. operationId: listPets
  20. tags:
  21. - pets
  22. parameters:
  23. - name: limit
  24. in: query
  25. description: How many items to return at one time (max 100)
  26. required: false
  27. type: integer
  28. format: int32
  29. myproperty: 123
  30. responses:
  31. "200":
  32. description: An paged array of pets
  33. headers:
  34. x-next:
  35. type: string
  36. description: A link to the next page of responses
  37. schema:
  38. $ref: '#/definitions/Pets'
  39. default:
  40. description: unexpected error
  41. schema:
  42. $ref: '#/definitions/Error'
  43. post:
  44. summary: Create a pet
  45. operationId: createPets
  46. tags: pets
  47. responses:
  48. "201":
  49. description: Null response
  50. default:
  51. description: unexpected error
  52. schema:
  53. $ref: '#/definitions/Error'
  54. /pets/{petId}:
  55. get:
  56. summary: Info for a specific pet
  57. operationId: showPetById
  58. tags:
  59. - pets
  60. parameters:
  61. - name: petId
  62. in: path
  63. required: true
  64. description: The id of the pet to retrieve
  65. type: string
  66. responses:
  67. "200":
  68. description: Expected response to a valid request
  69. schema:
  70. $ref: '#/definitions/Pets'
  71. default:
  72. description: unexpected error
  73. schema:
  74. $ref: '#/definitions/Error'
  75. definitions:
  76. Pet:
  77. required:
  78. - id
  79. - name
  80. properties:
  81. id:
  82. type: integer
  83. format: int64
  84. name:
  85. type: string
  86. tag:
  87. type: string
  88. Pets:
  89. type: array
  90. items:
  91. $ref: '#/definitions/Pet'
  92. Error:
  93. required:
  94. - code
  95. - message
  96. properties:
  97. code:
  98. type: integer
  99. format: int32
  100. message:
  101. type: string