rapipdf 2.2.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/README.md +66 -14
  2. package/dist/chunks/generate-BQLGaRvK.js +386 -0
  3. package/dist/chunks/generate-BQLGaRvK.js.LICENSE.txt +224 -0
  4. package/dist/chunks/localize-CRvDVkIz.js +8 -0
  5. package/dist/node.js +13096 -0
  6. package/dist/node.js.LICENSE.txt +195 -0
  7. package/dist/rapipdf-min.js +352 -90
  8. package/dist/rapipdf-min.js.LICENSE.txt +224 -0
  9. package/dist/rapipdf.js +69 -0
  10. package/package.json +58 -52
  11. package/src/node.d.ts +82 -0
  12. package/src/rapipdf.d.ts +50 -0
  13. package/.babelrc +0 -11
  14. package/.eslintrc +0 -28
  15. package/dist/index.html +0 -7
  16. package/dist/index.html.gz +0 -0
  17. package/dist/rapipdf-min.js.gz +0 -0
  18. package/dist/rapipdf-min.js.map +0 -1
  19. package/dist/rapipdf-min.js.map.gz +0 -0
  20. package/dist/report.html +0 -53
  21. package/docs/api.html +0 -285
  22. package/docs/examples/example1.html +0 -68
  23. package/docs/examples/list.html +0 -27
  24. package/docs/examples/rapidoc-regular.woff2 +0 -0
  25. package/docs/examples/rapidoc-semi-bold.woff2 +0 -0
  26. package/docs/examples/roboto-mono-bold.woff2 +0 -0
  27. package/docs/examples/roboto-mono-regular.woff2 +0 -0
  28. package/docs/highlight/CHANGES.md +0 -1803
  29. package/docs/highlight/LICENSE +0 -24
  30. package/docs/highlight/README.md +0 -188
  31. package/docs/highlight/README.ru.md +0 -142
  32. package/docs/highlight/highlight.pack.js +0 -2
  33. package/docs/highlight/styles/a11y-dark.css +0 -99
  34. package/docs/highlight/styles/a11y-light.css +0 -99
  35. package/docs/highlight/styles/agate.css +0 -108
  36. package/docs/highlight/styles/an-old-hope.css +0 -89
  37. package/docs/highlight/styles/androidstudio.css +0 -66
  38. package/docs/highlight/styles/arduino-light.css +0 -88
  39. package/docs/highlight/styles/arta.css +0 -73
  40. package/docs/highlight/styles/ascetic.css +0 -45
  41. package/docs/highlight/styles/atelier-cave-dark.css +0 -83
  42. package/docs/highlight/styles/atelier-cave-light.css +0 -85
  43. package/docs/highlight/styles/atelier-dune-dark.css +0 -69
  44. package/docs/highlight/styles/atelier-dune-light.css +0 -69
  45. package/docs/highlight/styles/atelier-estuary-dark.css +0 -84
  46. package/docs/highlight/styles/atelier-estuary-light.css +0 -84
  47. package/docs/highlight/styles/atelier-forest-dark.css +0 -69
  48. package/docs/highlight/styles/atelier-forest-light.css +0 -69
  49. package/docs/highlight/styles/atelier-heath-dark.css +0 -69
  50. package/docs/highlight/styles/atelier-heath-light.css +0 -69
  51. package/docs/highlight/styles/atelier-lakeside-dark.css +0 -69
  52. package/docs/highlight/styles/atelier-lakeside-light.css +0 -69
  53. package/docs/highlight/styles/atelier-plateau-dark.css +0 -84
  54. package/docs/highlight/styles/atelier-plateau-light.css +0 -84
  55. package/docs/highlight/styles/atelier-savanna-dark.css +0 -84
  56. package/docs/highlight/styles/atelier-savanna-light.css +0 -84
  57. package/docs/highlight/styles/atelier-seaside-dark.css +0 -69
  58. package/docs/highlight/styles/atelier-seaside-light.css +0 -69
  59. package/docs/highlight/styles/atelier-sulphurpool-dark.css +0 -69
  60. package/docs/highlight/styles/atelier-sulphurpool-light.css +0 -69
  61. package/docs/highlight/styles/atom-one-dark-reasonable.css +0 -77
  62. package/docs/highlight/styles/atom-one-dark.css +0 -96
  63. package/docs/highlight/styles/atom-one-light.css +0 -96
  64. package/docs/highlight/styles/brown-paper.css +0 -64
  65. package/docs/highlight/styles/brown-papersq.png +0 -0
  66. package/docs/highlight/styles/codepen-embed.css +0 -60
  67. package/docs/highlight/styles/color-brewer.css +0 -71
  68. package/docs/highlight/styles/darcula.css +0 -77
  69. package/docs/highlight/styles/dark.css +0 -63
  70. package/docs/highlight/styles/darkula.css +0 -6
  71. package/docs/highlight/styles/default.css +0 -99
  72. package/docs/highlight/styles/docco.css +0 -97
  73. package/docs/highlight/styles/dracula.css +0 -76
  74. package/docs/highlight/styles/far.css +0 -71
  75. package/docs/highlight/styles/foundation.css +0 -88
  76. package/docs/highlight/styles/github-gist.css +0 -71
  77. package/docs/highlight/styles/github.css +0 -99
  78. package/docs/highlight/styles/gml.css +0 -78
  79. package/docs/highlight/styles/googlecode.css +0 -89
  80. package/docs/highlight/styles/grayscale.css +0 -101
  81. package/docs/highlight/styles/gruvbox-dark.css +0 -108
  82. package/docs/highlight/styles/gruvbox-light.css +0 -108
  83. package/docs/highlight/styles/hopscotch.css +0 -83
  84. package/docs/highlight/styles/hybrid.css +0 -102
  85. package/docs/highlight/styles/idea.css +0 -97
  86. package/docs/highlight/styles/ir-black.css +0 -73
  87. package/docs/highlight/styles/isbl-editor-dark.css +0 -112
  88. package/docs/highlight/styles/isbl-editor-light.css +0 -112
  89. package/docs/highlight/styles/kimbie.dark.css +0 -74
  90. package/docs/highlight/styles/kimbie.light.css +0 -74
  91. package/docs/highlight/styles/lightfair.css +0 -87
  92. package/docs/highlight/styles/magula.css +0 -70
  93. package/docs/highlight/styles/mono-blue.css +0 -59
  94. package/docs/highlight/styles/monokai-sublime.css +0 -83
  95. package/docs/highlight/styles/monokai.css +0 -70
  96. package/docs/highlight/styles/nord.css +0 -309
  97. package/docs/highlight/styles/obsidian.css +0 -88
  98. package/docs/highlight/styles/ocean.css +0 -74
  99. package/docs/highlight/styles/paraiso-dark.css +0 -72
  100. package/docs/highlight/styles/paraiso-light.css +0 -72
  101. package/docs/highlight/styles/pojoaque.css +0 -83
  102. package/docs/highlight/styles/pojoaque.jpg +0 -0
  103. package/docs/highlight/styles/purebasic.css +0 -96
  104. package/docs/highlight/styles/qtcreator_dark.css +0 -83
  105. package/docs/highlight/styles/qtcreator_light.css +0 -83
  106. package/docs/highlight/styles/railscasts.css +0 -106
  107. package/docs/highlight/styles/rainbow.css +0 -85
  108. package/docs/highlight/styles/routeros.css +0 -108
  109. package/docs/highlight/styles/school-book.css +0 -72
  110. package/docs/highlight/styles/school-book.png +0 -0
  111. package/docs/highlight/styles/shades-of-purple.css +0 -97
  112. package/docs/highlight/styles/solarized-dark.css +0 -84
  113. package/docs/highlight/styles/solarized-light.css +0 -84
  114. package/docs/highlight/styles/sunburst.css +0 -102
  115. package/docs/highlight/styles/tomorrow-night-blue.css +0 -75
  116. package/docs/highlight/styles/tomorrow-night-bright.css +0 -74
  117. package/docs/highlight/styles/tomorrow-night-eighties.css +0 -74
  118. package/docs/highlight/styles/tomorrow-night.css +0 -75
  119. package/docs/highlight/styles/tomorrow.css +0 -72
  120. package/docs/highlight/styles/vs.css +0 -68
  121. package/docs/highlight/styles/vs2015.css +0 -115
  122. package/docs/highlight/styles/xcode.css +0 -104
  123. package/docs/highlight/styles/xt256.css +0 -92
  124. package/docs/highlight/styles/zenburn.css +0 -80
  125. package/docs/images/console.svg +0 -12
  126. package/docs/images/dark_ss.png +0 -0
  127. package/docs/images/easy.svg +0 -14
  128. package/docs/images/fast.svg +0 -8
  129. package/docs/images/gears.svg +0 -11
  130. package/docs/images/light_ss.png +0 -0
  131. package/docs/images/logo-outline.png +0 -0
  132. package/docs/images/logo.png +0 -0
  133. package/docs/images/love.svg +0 -8
  134. package/docs/images/mask.svg +0 -16
  135. package/docs/images/mouse.svg +0 -7
  136. package/docs/images/pdf_sample1.png +0 -0
  137. package/docs/images/pdf_sample2.png +0 -0
  138. package/docs/images/webcomponent.svg +0 -13
  139. package/docs/index.css +0 -257
  140. package/docs/index.html +0 -186
  141. package/docs/rapipdf-min.js +0 -95
  142. package/docs/specs/allof-primitives.json +0 -80
  143. package/docs/specs/allof.json +0 -73
  144. package/docs/specs/anyof.json +0 -84
  145. package/docs/specs/basic.json +0 -75
  146. package/docs/specs/bitbucket.json +0 -12916
  147. package/docs/specs/data-types.yaml +0 -168
  148. package/docs/specs/gcloud.json +0 -1347
  149. package/docs/specs/no-server.json +0 -1
  150. package/docs/specs/oneof.json +0 -64
  151. package/docs/specs/petstore.json +0 -1042
  152. package/docs/specs/petstore_extended.yaml +0 -889
  153. package/docs/specs/temp.json +0 -53
  154. package/docs/specs/test-specs/large-models.json +0 -5998
  155. package/docs/specs/test-specs/long-descriptions.json +0 -5443
  156. package/docs/specs/test-specs/long-paths.json +0 -9562
  157. package/docs/specs/test-specs/oneof-allof-nested.yaml +0 -105
  158. package/docs/specs/test-specs/partial-spec-main.json +0 -29
  159. package/docs/specs/test-specs/partial.json +0 -17
  160. package/docs/specs/test-specs/petstore_complex_request.yaml +0 -335
  161. package/docs/specs/test-specs/petstore_experimental.yaml +0 -167
  162. package/docs/specs/test-specs/xxx-of-with-primitives-and-recursive-model.yaml +0 -952
  163. package/docs/welcome.html +0 -186
  164. package/index.html +0 -48
  165. package/logo.png +0 -0
  166. package/src/index.js +0 -3
  167. package/src/markdown.js +0 -120
  168. package/src/object-tree-gen.js +0 -370
  169. package/src/pdf-gen.js +0 -113
  170. package/src/pdf-parts-gen.js +0 -488
  171. package/src/rapipdf.js +0 -246
  172. package/src/spec-parser.js +0 -178
  173. package/src/table-layouts.js +0 -35
  174. package/src/vfs_fonts.js +0 -7
  175. package/webpack.config.js +0 -118
@@ -1,105 +0,0 @@
1
- openapi: "3.0.2"
2
- info:
3
- title: "API example"
4
- description: "Sample desc."
5
- version: "1"
6
-
7
-
8
-
9
- servers:
10
- # Added by API Auto Mocking Plugin
11
- - description: SwaggerHub API Auto Mocking
12
- url: https://virtserver.swaggerhub.com/leorush/testtw/1
13
- - url: http://demo.example.com
14
- description: Demo server
15
-
16
-
17
-
18
-
19
- paths:
20
- /registration/domains:
21
- post:
22
- requestBody:
23
- required: true
24
- content:
25
- application/json:
26
- schema:
27
- oneOf:
28
- - $ref: '#/components/schemas/domain_order_data'
29
- - $ref: '#/components/schemas/domain_order_data_org'
30
- discriminator:
31
- propertyName: customer_type
32
- mapping:
33
- person: '#/components/schemas/domain_order_data'
34
- org: '#/components/schemas/domain_order_data_org'
35
-
36
- responses:
37
- 200:
38
- $ref: '#/components/responses/customer_reg'
39
-
40
-
41
- components:
42
- schemas:
43
- common_data:
44
- type: object
45
- required:
46
- - customer_type
47
- properties:
48
- customer_type:
49
- type: string
50
- enum:
51
- - "person"
52
- - "org"
53
- description: "client type"
54
- example: "person"
55
-
56
- common_org_data:
57
- type: object
58
- required:
59
- - org_address
60
- - org_name
61
- properties:
62
-
63
- org_address:
64
- type: string
65
- example: "bbb"
66
- org_name:
67
- type: string
68
- example: "aaa"
69
-
70
- domain_order_data:
71
- allOf:
72
- - type: object
73
- required:
74
- - domains
75
- - phone_number
76
- properties:
77
- domains:
78
- type: array
79
- items:
80
- type: string
81
- example: ["tesrrrrrrr.com"]
82
- phone_number:
83
- type: string
84
- example: "79219523621"
85
- - $ref: '#/components/schemas/common_data'
86
-
87
- domain_order_data_org:
88
- allOf:
89
- - $ref: '#/components/schemas/common_org_data'
90
- - $ref: '#/components/schemas/domain_order_data'
91
-
92
-
93
-
94
- responses:
95
- customer_reg:
96
- description: "sample"
97
- content:
98
- application/json:
99
- schema:
100
- type: object
101
- properties:
102
- password:
103
- type: string
104
- description: "user password"
105
- example: "zOmjt68sej6S"
@@ -1,29 +0,0 @@
1
- {
2
- "swagger": "2.0",
3
- "info": {
4
- "title": "Spec split into multiple files",
5
- "description": "This is to test the spec that is split into multiple file. In this case the schema definitions are defined in seperate json "
6
- },
7
- "consumes": [ "application/json"],
8
- "produces": [ "application/json"],
9
- "paths": {
10
- "/api/employee": {
11
- "get": {
12
- "tags": ["Employee Details"],
13
- "summary": "List of employees",
14
- "operationId": "empDetails",
15
- "responses": {
16
- "200": {
17
- "description": "The schema-defination of the response model is picked from a sperate `json` file",
18
- "schema": {
19
- "type": "array",
20
- "items": {
21
- "$ref": "../../../specs/test-specs/partial.json#/definitions/employee"
22
- }
23
- }
24
- }
25
- }
26
- }
27
- }
28
- }
29
- }
@@ -1,17 +0,0 @@
1
- {
2
- "definitions": {
3
- "employee": {
4
- "description": "Employee Details",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "properties": {
8
- "empId" : { "type": "string", "description": "Employee ID"},
9
- "firstName" : { "type": "string", "description": "First name" },
10
- "lastName" : { "type": "string", "description": "Last Name" },
11
- "jobTitle" : { "type": "string", "description": "Job title" },
12
- "department": { "type": "string", "description": "Department name"},
13
- "salary" : { "type": "number", "description": "Salary per annum"}
14
- }
15
- }
16
- }
17
- }
@@ -1,335 +0,0 @@
1
- openapi: 3.0.0
2
- info:
3
- description: This is a sample server Petstore containing a complex request body
4
- version: 1.0.0
5
- title: Swagger Petstore
6
- termsOfService: 'http://swagger.io/terms/'
7
- contact:
8
- name: API Support
9
- email: apiteam@swagger.io
10
- url: https://github.com/Redocly/redoc
11
- tags:
12
- - name: pet
13
- description: Everything about your Pets
14
- paths:
15
- /pet:
16
- parameters:
17
- - name: cookieParam
18
- in: cookie
19
- description: Some cookie
20
- required: true
21
- schema:
22
- type: integer
23
- format: int64
24
- post:
25
- tags:
26
- - pet
27
- summary: Add a new pet to the store
28
- description: Add new pet to the store inventory.
29
- operationId: addPet
30
- responses:
31
- '200':
32
- description: successful operation
33
- content:
34
- application/json:
35
- schema:
36
- $ref: '#/components/schemas/Pet'
37
- application/xml:
38
- schema:
39
- $ref: '#/components/schemas/Pet'
40
- requestBody:
41
- $ref: '#/components/requestBodies/Pet'
42
- components:
43
- schemas:
44
- ApiResponse:
45
- type: object
46
- properties:
47
- code:
48
- type: integer
49
- format: int32
50
- type:
51
- type: string
52
- message:
53
- type: string
54
- Cat:
55
- description: A representation of a cat
56
- allOf:
57
- - $ref: '#/components/schemas/Pet'
58
- - type: object
59
- properties:
60
- huntingSkill:
61
- type: string
62
- description: The measured skill for hunting
63
- default: lazy
64
- enum:
65
- - clueless
66
- - lazy
67
- - adventurous
68
- - aggressive
69
- required:
70
- - huntingSkill
71
- Category:
72
- type: object
73
- properties:
74
- id:
75
- description: Category ID
76
- allOf:
77
- - $ref: '#/components/schemas/Id'
78
- name:
79
- description: Category name
80
- type: string
81
- minLength: 1
82
- sub:
83
- description: Test Sub Category
84
- type: object
85
- properties:
86
- prop1:
87
- type: string
88
- description: Dumb Property
89
- xml:
90
- name: Category
91
- Dog:
92
- description: A representation of a dog
93
- allOf:
94
- - $ref: '#/components/schemas/Pet'
95
- - type: object
96
- properties:
97
- packSize:
98
- type: integer
99
- format: int32
100
- description: The size of the pack the dog is from
101
- default: 1
102
- minimum: 1
103
- required:
104
- - packSize
105
- HoneyBee:
106
- description: A representation of a honey bee
107
- allOf:
108
- - $ref: '#/components/schemas/Pet'
109
- - type: object
110
- properties:
111
- honeyPerDay:
112
- type: number
113
- description: Average amount of honey produced per day in ounces
114
- example: 3.14
115
- required:
116
- - honeyPerDay
117
- Id:
118
- type: integer
119
- format: int64
120
- readOnly: true
121
- Order:
122
- type: object
123
- properties:
124
- id:
125
- description: Order ID
126
- allOf:
127
- - $ref: '#/components/schemas/Id'
128
- petId:
129
- description: Pet ID
130
- allOf:
131
- - $ref: '#/components/schemas/Id'
132
- quantity:
133
- type: integer
134
- format: int32
135
- minimum: 1
136
- default: 1
137
- shipDate:
138
- description: Estimated ship date
139
- type: string
140
- format: date-time
141
- status:
142
- type: string
143
- description: Order Status
144
- enum:
145
- - placed
146
- - approved
147
- - delivered
148
- complete:
149
- description: Indicates whenever order was completed or not
150
- type: boolean
151
- default: false
152
- readOnly: true
153
- rqeuestId:
154
- description: Unique Request Id
155
- type: string
156
- writeOnly: true
157
- xml:
158
- name: Order
159
- Pet:
160
- type: object
161
- required:
162
- - name
163
- - photoUrls
164
- discriminator:
165
- propertyName: petType
166
- mapping:
167
- cat: '#/components/schemas/Cat'
168
- dog: '#/components/schemas/Dog'
169
- bee: '#/components/schemas/HoneyBee'
170
- properties:
171
- id:
172
- externalDocs:
173
- description: "Find more info here"
174
- url: "https://example.com"
175
- description: Pet ID
176
- allOf:
177
- - $ref: '#/components/schemas/Id'
178
- category:
179
- description: Categories this pet belongs to
180
- allOf:
181
- - $ref: '#/components/schemas/Category'
182
- name:
183
- description: The name given to a pet
184
- type: string
185
- example: Guru
186
- photoUrls:
187
- description: The list of URL to a cute photos featuring pet
188
- type: array
189
- maxItems: 20
190
- xml:
191
- name: photoUrl
192
- wrapped: true
193
- items:
194
- type: string
195
- format: url
196
- friend:
197
- allOf:
198
- - $ref: '#/components/schemas/Pet'
199
- tags:
200
- description: Tags attached to the pet
201
- type: array
202
- minItems: 1
203
- xml:
204
- name: tag
205
- wrapped: true
206
- items:
207
- $ref: '#/components/schemas/Tag'
208
- status:
209
- type: string
210
- description: Pet status in the store
211
- enum:
212
- - available
213
- - pending
214
- - sold
215
- petType:
216
- description: Type of a pet
217
- type: string
218
- xml:
219
- name: Pet
220
- Tag:
221
- type: object
222
- properties:
223
- id:
224
- description: Tag ID
225
- allOf:
226
- - $ref: '#/components/schemas/Id'
227
- name:
228
- description: Tag name
229
- type: string
230
- minLength: 1
231
- xml:
232
- name: Tag
233
- User:
234
- type: object
235
- properties:
236
- id:
237
- $ref: '#/components/schemas/Id'
238
- pet:
239
- oneOf:
240
- - $ref: '#/components/schemas/Pet'
241
- - $ref: '#/components/schemas/Tag'
242
- username:
243
- description: User supplied username
244
- type: string
245
- minLength: 4
246
- example: John78
247
- firstName:
248
- description: User first name
249
- type: string
250
- minLength: 1
251
- example: John
252
- lastName:
253
- description: User last name
254
- type: string
255
- minLength: 1
256
- example: Smith
257
- email:
258
- description: User email address
259
- type: string
260
- format: email
261
- example: john.smith@example.com
262
- password:
263
- type: string
264
- description: >-
265
- User password, MUST contain a mix of upper and lower case letters,
266
- as well as digits
267
- format: password
268
- minLength: 8
269
- pattern: '/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/'
270
- example: drowssaP123
271
- phone:
272
- description: User phone number in international format
273
- type: string
274
- pattern: '/^\+(?:[0-9]-?){6,14}[0-9]$/'
275
- example: +1-202-555-0192
276
- nullable: true
277
- userStatus:
278
- description: User status
279
- type: integer
280
- format: int32
281
- xml:
282
- name: User
283
- requestBodies:
284
- Pet:
285
- content:
286
- application/json:
287
- schema:
288
- allOf:
289
- - description: My Pet
290
- title: Pettie
291
- - $ref: '#/components/schemas/Pet'
292
- application/xml:
293
- schema:
294
- type: 'object'
295
- properties:
296
- name:
297
- type: string
298
- description: hooray
299
- description: Pet object that needs to be added to the store
300
- required: true
301
- UserArray:
302
- content:
303
- application/json:
304
- schema:
305
- type: array
306
- items:
307
- $ref: '#/components/schemas/User'
308
- description: List of user object
309
- required: true
310
- securitySchemes:
311
- petstore_auth:
312
- description: |
313
- Get access to data while protecting your account credentials.
314
- OAuth2 is also a safer and more secure way to give you access.
315
- type: oauth2
316
- flows:
317
- implicit:
318
- authorizationUrl: 'http://petstore.swagger.io/api/oauth/dialog'
319
- scopes:
320
- 'write:pets': modify pets in your account
321
- 'read:pets': read your pets
322
- api_key:
323
- description: >
324
- For this sample, you can use the api key `special-key` to test the
325
- authorization filters.
326
- type: apiKey
327
- name: api_key
328
- in: header
329
- examples:
330
- Order:
331
- value:
332
- quantity: 1,
333
- shipDate: 2018-10-19T16:46:45Z,
334
- status: placed,
335
- complete: false
@@ -1,167 +0,0 @@
1
- openapi: 3.0.0
2
- info:
3
- description: Contains all data types
4
- version: 1.0.0
5
- title: Testing different data-types
6
- paths:
7
- /person:
8
- post:
9
- summary: Contains parameters of various data-types and constraints in query, request-body and response
10
- operationId: samplePost
11
- parameters:
12
- - name: height
13
- in: query
14
- description: height in inches
15
- required: true
16
- schema:
17
- type: integer
18
- format: int32
19
- minimum: 12
20
- maximum: 120
21
- - name: full-name
22
- in: query
23
- description: Name of a person
24
- required: true
25
- schema:
26
- type: string
27
- minimum: 3
28
- - name: social-connection
29
- in: query
30
- description: facebook, linkedin, github, instagram, twitter etc
31
- schema:
32
- type: string
33
- format: url
34
- - name: email
35
- in: query
36
- required: true
37
- schema:
38
- type: string
39
- format: email
40
- - name: email-password
41
- in: query
42
- required: true
43
- schema:
44
- type: string
45
- format: password
46
- - name: date-of-birth
47
- in: query
48
- required: true
49
- schema:
50
- type: string
51
- format: date
52
- - name: interests
53
- in: query
54
- required: true
55
- schema:
56
- type: array
57
- minItems: 1
58
- maxItems: 3
59
- items:
60
- type: string
61
- enum:
62
- - computers
63
- - hiking
64
- - swiming
65
- - movies
66
- - music
67
- - dancing
68
- - reading
69
- - painting
70
- default: hiking
71
- - name: tags
72
- in: query
73
- description: Add tags to the person
74
- style: form
75
- schema:
76
- type: array
77
- items:
78
- type: string
79
- responses:
80
- '200':
81
- description: successful operation
82
- content:
83
- application/json:
84
- schema:
85
- type: array
86
- items:
87
- $ref: '#/components/schemas/Person'
88
- requestBody:
89
- content:
90
- application/json:
91
- schema:
92
- $ref: '#/components/schemas/Category'
93
- description: order placed for purchasing the pet
94
- required: true
95
- components:
96
- schemas:
97
- Category:
98
- type: object
99
- properties:
100
- id:
101
- description: Category ID
102
- allOf:
103
- - $ref: '#/components/schemas/Id'
104
- name:
105
- description: Category name
106
- type: string
107
- minLength: 1
108
- Id:
109
- type: integer
110
- format: int64
111
- readOnly: true
112
- Person:
113
- type: object
114
- required:
115
- - name
116
- - photoUrls
117
- properties:
118
- id:
119
- description: Pet ID
120
- allOf:
121
- - $ref: '#/components/schemas/Id'
122
- category:
123
- description: Categories this pet belongs to
124
- allOf:
125
- - $ref: '#/components/schemas/Category'
126
- name:
127
- description: Name of the person
128
- type: string
129
- minLength: 4
130
- example: Guru
131
- photoUrls:
132
- description: The list of URL to a cute photos featuring pet
133
- type: array
134
- maxItems: 20
135
- items:
136
- type: string
137
- format: url
138
- tags:
139
- description: Tags attached to the pet
140
- type: array
141
- minItems: 1
142
- items:
143
- $ref: '#/components/schemas/Tag'
144
- maritalStatus:
145
- type: string
146
- description: Pet status in the store
147
- enum:
148
- - married
149
- - unmarried
150
- - widowed
151
- phone:
152
- description: phone number in international format
153
- type: string
154
- pattern: '/^\+(?:[0-9]-?){6,14}[0-9]$/'
155
- example: +1-202-555-0192
156
- nullable: true
157
- Tag:
158
- type: object
159
- properties:
160
- id:
161
- description: Tag ID
162
- allOf:
163
- - $ref: '#/components/schemas/Id'
164
- name:
165
- description: Tag name
166
- type: string
167
- minLength: 1