models.openapi.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. openapi: "3.0.0"
  2. components:
  3. schemas:
  4. Order:
  5. type: object
  6. properties:
  7. id:
  8. type: integer
  9. format: int64
  10. petId:
  11. type: integer
  12. format: int64
  13. quantity:
  14. type: integer
  15. format: int32
  16. shipDate:
  17. type: string
  18. format: date-time
  19. status:
  20. type: string
  21. description: Order Status
  22. enum:
  23. - placed
  24. - approved
  25. - delivered
  26. complete:
  27. type: boolean
  28. default: false
  29. xml:
  30. name: Order
  31. User:
  32. type: object
  33. properties:
  34. id:
  35. type: integer
  36. format: int64
  37. username:
  38. type: string
  39. firstName:
  40. type: string
  41. lastName:
  42. type: string
  43. email:
  44. type: string
  45. password:
  46. type: string
  47. phone:
  48. type: string
  49. userStatus:
  50. type: integer
  51. format: int32
  52. description: User Status
  53. xml:
  54. name: User
  55. Pet:
  56. type: object
  57. required:
  58. - name
  59. - photoUrls
  60. properties:
  61. id:
  62. type: integer
  63. format: int64
  64. category:
  65. $ref: '#/components/schemas/Category'
  66. name:
  67. type: string
  68. example: doggie
  69. photoUrls:
  70. type: array
  71. xml:
  72. name: photoUrl
  73. wrapped: true
  74. items:
  75. type: string
  76. tags:
  77. type: array
  78. xml:
  79. name: tag
  80. wrapped: true
  81. items:
  82. $ref: '#/components/schemas/Tag'
  83. status:
  84. type: string
  85. description: pet status in the store
  86. enum:
  87. - available
  88. - pending
  89. - sold
  90. xml:
  91. name: Pet