Spaces:
Runtime error
Runtime error
Commit
·
4fe64f3
1
Parent(s):
d2097b4
ansi to utf8 lok
Browse files- app.py +1 -2
- static/api.yaml +1 -1
- static/template.yaml +0 -652
app.py
CHANGED
|
@@ -124,5 +124,4 @@ if __name__ == "__main__":
|
|
| 124 |
outfile.write(info.replace('$VERSION_VARIABLE$', VERSION))
|
| 125 |
outfile.truncate()
|
| 126 |
|
| 127 |
-
app.run(host="0.0.0.0", port=7860)
|
| 128 |
-
|
|
|
|
| 124 |
outfile.write(info.replace('$VERSION_VARIABLE$', VERSION))
|
| 125 |
outfile.truncate()
|
| 126 |
|
| 127 |
+
app.run(host="0.0.0.0", port=7860)
|
|
|
static/api.yaml
CHANGED
|
@@ -5,7 +5,7 @@ info:
|
|
| 5 |
version: $VERSION_VARIABLE$
|
| 6 |
servers:
|
| 7 |
- url: 'https://imperialwool-funapi.hf.space/'
|
| 8 |
-
description: 'You are here!
|
| 9 |
paths:
|
| 10 |
/signatures/api/v1/get:
|
| 11 |
post:
|
|
|
|
| 5 |
version: $VERSION_VARIABLE$
|
| 6 |
servers:
|
| 7 |
- url: 'https://imperialwool-funapi.hf.space/'
|
| 8 |
+
description: 'You are here! ^o^'
|
| 9 |
paths:
|
| 10 |
/signatures/api/v1/get:
|
| 11 |
post:
|
static/template.yaml
DELETED
|
@@ -1,652 +0,0 @@
|
|
| 1 |
-
openapi: 3.0.0
|
| 2 |
-
info:
|
| 3 |
-
title: Providing Examples
|
| 4 |
-
description: Providing Examples
|
| 5 |
-
version: 1.0.0
|
| 6 |
-
paths:
|
| 7 |
-
/multiple-examples-in-request-parameters/{path-param-1}/{path-param-2}:
|
| 8 |
-
get:
|
| 9 |
-
tags:
|
| 10 |
-
- Providing Examples
|
| 11 |
-
parameters:
|
| 12 |
-
- name: 'path-param-1'
|
| 13 |
-
in: 'path'
|
| 14 |
-
schema:
|
| 15 |
-
type: 'string'
|
| 16 |
-
default: "p1-opt-2"
|
| 17 |
-
examples:
|
| 18 |
-
example1:
|
| 19 |
-
value: "p1-opt-1"
|
| 20 |
-
example2:
|
| 21 |
-
value: "p1-opt-2"
|
| 22 |
-
- name: 'path-param-2'
|
| 23 |
-
in: 'path'
|
| 24 |
-
schema:
|
| 25 |
-
type: 'string'
|
| 26 |
-
examples:
|
| 27 |
-
example1:
|
| 28 |
-
value: "p2-opt-1"
|
| 29 |
-
example2:
|
| 30 |
-
value: "p2-opt-2"
|
| 31 |
-
- name: 'age'
|
| 32 |
-
description: Single Example
|
| 33 |
-
in: 'query'
|
| 34 |
-
schema:
|
| 35 |
-
type: 'number'
|
| 36 |
-
example: 24
|
| 37 |
-
- name: 'country-code'
|
| 38 |
-
description: Multiple examples _(Notice `us` do not have a summary)_
|
| 39 |
-
in: 'query'
|
| 40 |
-
schema:
|
| 41 |
-
type: 'string'
|
| 42 |
-
default: " "
|
| 43 |
-
examples:
|
| 44 |
-
example1:
|
| 45 |
-
value: "uk"
|
| 46 |
-
summary: "United Kingdom"
|
| 47 |
-
example2:
|
| 48 |
-
value: "us"
|
| 49 |
-
example3:
|
| 50 |
-
value: "ch"
|
| 51 |
-
summary: "China"
|
| 52 |
-
- name: 'marital-status'
|
| 53 |
-
in: 'query'
|
| 54 |
-
schema:
|
| 55 |
-
type: 'string'
|
| 56 |
-
default: "unmarried"
|
| 57 |
-
examples:
|
| 58 |
-
example1:
|
| 59 |
-
value: "married"
|
| 60 |
-
example2:
|
| 61 |
-
value: "unmarried"
|
| 62 |
-
example3:
|
| 63 |
-
value: "widowed"
|
| 64 |
-
- name: luckyNumbers
|
| 65 |
-
in: query
|
| 66 |
-
schema:
|
| 67 |
-
type: array
|
| 68 |
-
items:
|
| 69 |
-
type: number
|
| 70 |
-
minItems: 4
|
| 71 |
-
maxItems: 4
|
| 72 |
-
examples:
|
| 73 |
-
- ""
|
| 74 |
-
- " "
|
| 75 |
-
- [10]
|
| 76 |
-
- [10, 20, 30, 40]
|
| 77 |
-
|
| 78 |
-
/multiple-examples-by-response-type:
|
| 79 |
-
get:
|
| 80 |
-
description: Multiple Examples provide for each media-type (`application/json` or `application/json`)
|
| 81 |
-
tags:
|
| 82 |
-
- Providing Examples
|
| 83 |
-
responses:
|
| 84 |
-
'200':
|
| 85 |
-
description: Successful operation
|
| 86 |
-
content:
|
| 87 |
-
application/json:
|
| 88 |
-
schema:
|
| 89 |
-
type: object
|
| 90 |
-
properties:
|
| 91 |
-
age:
|
| 92 |
-
description: Person Age
|
| 93 |
-
type: integer
|
| 94 |
-
fullName:
|
| 95 |
-
description: Person Full name
|
| 96 |
-
type: object
|
| 97 |
-
properties:
|
| 98 |
-
firstName:
|
| 99 |
-
description: First name
|
| 100 |
-
type: string
|
| 101 |
-
lastName:
|
| 102 |
-
description: Last name
|
| 103 |
-
type: string
|
| 104 |
-
examples:
|
| 105 |
-
valid-json:
|
| 106 |
-
summary: Example with Valid JSON String
|
| 107 |
-
description: If valid JSON is provided in the example, It will be displayed in JSON tree form. Allowing copy/expand/collapse functionality
|
| 108 |
-
value: |
|
| 109 |
-
{
|
| 110 |
-
"person": {
|
| 111 |
-
"fullName": {
|
| 112 |
-
"firstName": "Mickey",
|
| 113 |
-
"lastName": "Mouse"
|
| 114 |
-
},
|
| 115 |
-
"age": "9"
|
| 116 |
-
}
|
| 117 |
-
}
|
| 118 |
-
invalid-json:
|
| 119 |
-
summary: Example with Invalid JSON String
|
| 120 |
-
description: Invalid JSON is displayed in text-area as is
|
| 121 |
-
value: |
|
| 122 |
-
{
|
| 123 |
-
person: {
|
| 124 |
-
fullName: {
|
| 125 |
-
firstName: Donald,
|
| 126 |
-
lastName: Duck
|
| 127 |
-
},
|
| 128 |
-
age: 10
|
| 129 |
-
}
|
| 130 |
-
}
|
| 131 |
-
as-object:
|
| 132 |
-
summary: Example specified as object
|
| 133 |
-
value:
|
| 134 |
-
fullName:
|
| 135 |
-
firstName: Donald
|
| 136 |
-
lastName: Duck
|
| 137 |
-
age: 10
|
| 138 |
-
application/xml:
|
| 139 |
-
schema:
|
| 140 |
-
type: object
|
| 141 |
-
properties:
|
| 142 |
-
age:
|
| 143 |
-
description: Person Age
|
| 144 |
-
type: integer
|
| 145 |
-
fullName:
|
| 146 |
-
description: Person Full name
|
| 147 |
-
type: object
|
| 148 |
-
properties:
|
| 149 |
-
firstName:
|
| 150 |
-
description: First name
|
| 151 |
-
type: string
|
| 152 |
-
lastName:
|
| 153 |
-
description: Last name
|
| 154 |
-
type: string
|
| 155 |
-
examples:
|
| 156 |
-
example-1:
|
| 157 |
-
description: Exmple 1 Description
|
| 158 |
-
value: |
|
| 159 |
-
<root>
|
| 160 |
-
<person>
|
| 161 |
-
<fullName>
|
| 162 |
-
<firstName> Mickey </firstName>
|
| 163 |
-
<lastName> Mouse </lastName>
|
| 164 |
-
</fullName>
|
| 165 |
-
<age> 9 </age>
|
| 166 |
-
</person>
|
| 167 |
-
</root>
|
| 168 |
-
/single-example-by-response-type:
|
| 169 |
-
get:
|
| 170 |
-
summary: Single Example at schema Level
|
| 171 |
-
tags:
|
| 172 |
-
- Providing Examples
|
| 173 |
-
responses:
|
| 174 |
-
'200':
|
| 175 |
-
description: Successful operation
|
| 176 |
-
content:
|
| 177 |
-
application/json:
|
| 178 |
-
schema:
|
| 179 |
-
type: object
|
| 180 |
-
properties:
|
| 181 |
-
age:
|
| 182 |
-
description: Person Age
|
| 183 |
-
type: integer
|
| 184 |
-
fullName:
|
| 185 |
-
description: Person Full name
|
| 186 |
-
type: object
|
| 187 |
-
properties:
|
| 188 |
-
firstName:
|
| 189 |
-
description: First name
|
| 190 |
-
type: string
|
| 191 |
-
lastName:
|
| 192 |
-
description: Last name
|
| 193 |
-
type: string
|
| 194 |
-
example: |
|
| 195 |
-
{
|
| 196 |
-
age: 10,
|
| 197 |
-
fullName: {
|
| 198 |
-
firstName: Donald,
|
| 199 |
-
lastName: Duck
|
| 200 |
-
}
|
| 201 |
-
}
|
| 202 |
-
/example-with-array-1:
|
| 203 |
-
get:
|
| 204 |
-
summary: Single Example at schema Level
|
| 205 |
-
tags:
|
| 206 |
-
- Providing Examples
|
| 207 |
-
responses:
|
| 208 |
-
'200':
|
| 209 |
-
description: Successful operation
|
| 210 |
-
content:
|
| 211 |
-
application/json:
|
| 212 |
-
schema:
|
| 213 |
-
$ref: "#/components/schemas/ArrayOfInt-1"
|
| 214 |
-
/example-with-array-2:
|
| 215 |
-
get:
|
| 216 |
-
summary: Single Example at schema Level
|
| 217 |
-
tags:
|
| 218 |
-
- Providing Examples
|
| 219 |
-
responses:
|
| 220 |
-
'200':
|
| 221 |
-
description: Successful operation
|
| 222 |
-
content:
|
| 223 |
-
application/json:
|
| 224 |
-
schema:
|
| 225 |
-
$ref: "#/components/schemas/ArrayOfInt-2"
|
| 226 |
-
|
| 227 |
-
/object-example-for-a-schema:
|
| 228 |
-
get:
|
| 229 |
-
summary: Single example having invalid JSON, under a Schema
|
| 230 |
-
tags:
|
| 231 |
-
- Providing Examples
|
| 232 |
-
responses:
|
| 233 |
-
'200':
|
| 234 |
-
description: Successful operation
|
| 235 |
-
content:
|
| 236 |
-
application/json:
|
| 237 |
-
schema:
|
| 238 |
-
type: object
|
| 239 |
-
properties:
|
| 240 |
-
age:
|
| 241 |
-
description: Person Age
|
| 242 |
-
type: integer
|
| 243 |
-
fullName:
|
| 244 |
-
description: Person Full name
|
| 245 |
-
type: object
|
| 246 |
-
properties:
|
| 247 |
-
firstName:
|
| 248 |
-
description: First name
|
| 249 |
-
type: string
|
| 250 |
-
lastName:
|
| 251 |
-
description: Last name
|
| 252 |
-
type: string
|
| 253 |
-
example: |
|
| 254 |
-
{
|
| 255 |
-
person: {
|
| 256 |
-
fullName: {
|
| 257 |
-
firstName: Donald,
|
| 258 |
-
lastName: Duck
|
| 259 |
-
},
|
| 260 |
-
age: 10
|
| 261 |
-
}
|
| 262 |
-
}
|
| 263 |
-
/array-example-for-a-schema:
|
| 264 |
-
get:
|
| 265 |
-
summary: Single Example of Type Array Under a Schema
|
| 266 |
-
tags:
|
| 267 |
-
- Providing Examples
|
| 268 |
-
responses:
|
| 269 |
-
'200':
|
| 270 |
-
description: An array of currency codes
|
| 271 |
-
content:
|
| 272 |
-
application/json:
|
| 273 |
-
schema:
|
| 274 |
-
$ref: "#/components/schemas/currencies"
|
| 275 |
-
/example-with-simple-object:
|
| 276 |
-
get:
|
| 277 |
-
summary: Single Example of Type Array Under a Schema
|
| 278 |
-
tags:
|
| 279 |
-
- Providing Examples
|
| 280 |
-
responses:
|
| 281 |
-
'200':
|
| 282 |
-
description: An array of currency codes
|
| 283 |
-
content:
|
| 284 |
-
application/json:
|
| 285 |
-
schema:
|
| 286 |
-
$ref: "#/components/schemas/PersonObject"
|
| 287 |
-
/per-field-example-with-root-as-object:
|
| 288 |
-
get:
|
| 289 |
-
summary: Root node of the example is an object. and the object is constituted using field level example
|
| 290 |
-
tags:
|
| 291 |
-
- Providing Examples
|
| 292 |
-
responses:
|
| 293 |
-
'200':
|
| 294 |
-
description: Successful operation
|
| 295 |
-
content:
|
| 296 |
-
application/json:
|
| 297 |
-
schema:
|
| 298 |
-
type: object
|
| 299 |
-
properties:
|
| 300 |
-
age:
|
| 301 |
-
description: Person Age
|
| 302 |
-
type: integer
|
| 303 |
-
example: 8
|
| 304 |
-
fullName:
|
| 305 |
-
description: Person Full name
|
| 306 |
-
type: object
|
| 307 |
-
properties:
|
| 308 |
-
firstName:
|
| 309 |
-
description: First name
|
| 310 |
-
type: string
|
| 311 |
-
example: 'Daisy'
|
| 312 |
-
lastName:
|
| 313 |
-
description: Last name
|
| 314 |
-
type: string
|
| 315 |
-
example: 'Duck'
|
| 316 |
-
dependents:
|
| 317 |
-
type: array
|
| 318 |
-
items:
|
| 319 |
-
type: object
|
| 320 |
-
properties:
|
| 321 |
-
dependentName:
|
| 322 |
-
type: string
|
| 323 |
-
relation:
|
| 324 |
-
type: string
|
| 325 |
-
age:
|
| 326 |
-
type: number
|
| 327 |
-
/per-field-example-with-root-as-array:
|
| 328 |
-
get:
|
| 329 |
-
summary: Root node of the example is an array. and the object is constituted using field level example
|
| 330 |
-
tags:
|
| 331 |
-
- Providing Examples
|
| 332 |
-
responses:
|
| 333 |
-
'200':
|
| 334 |
-
description: Successful operation
|
| 335 |
-
content:
|
| 336 |
-
application/json:
|
| 337 |
-
schema:
|
| 338 |
-
type: array
|
| 339 |
-
items:
|
| 340 |
-
type: object
|
| 341 |
-
properties:
|
| 342 |
-
dependentName:
|
| 343 |
-
type: string
|
| 344 |
-
relation:
|
| 345 |
-
type: string
|
| 346 |
-
age:
|
| 347 |
-
type: number
|
| 348 |
-
example:
|
| 349 |
-
dependentName: Natasha
|
| 350 |
-
relation: wife
|
| 351 |
-
age: 28
|
| 352 |
-
/example-with-refs:
|
| 353 |
-
get:
|
| 354 |
-
description: |
|
| 355 |
-
When a Schema definition is `provided` as a ref
|
| 356 |
-
(provide the example at schema-level)
|
| 357 |
-
tags:
|
| 358 |
-
- Providing Examples
|
| 359 |
-
responses:
|
| 360 |
-
'200':
|
| 361 |
-
description: Successful operation
|
| 362 |
-
content:
|
| 363 |
-
application/json:
|
| 364 |
-
schema:
|
| 365 |
-
type: array
|
| 366 |
-
items:
|
| 367 |
-
$ref: '#/components/schemas/cost'
|
| 368 |
-
examples:
|
| 369 |
-
USD:
|
| 370 |
-
description: Cost in `US Dollars`
|
| 371 |
-
value: |
|
| 372 |
-
{
|
| 373 |
-
amount: 10,
|
| 374 |
-
currency: USD
|
| 375 |
-
}
|
| 376 |
-
INR:
|
| 377 |
-
description: Cost in `Indian Rupees`
|
| 378 |
-
value: |
|
| 379 |
-
{
|
| 380 |
-
amount: 700,
|
| 381 |
-
currency: INR
|
| 382 |
-
}
|
| 383 |
-
/multiple-example-in-request-body:
|
| 384 |
-
post:
|
| 385 |
-
summary: Request body with multiple examples
|
| 386 |
-
tags:
|
| 387 |
-
- Providing Examples
|
| 388 |
-
requestBody:
|
| 389 |
-
description: Request body containing **multiple** examples
|
| 390 |
-
required: true
|
| 391 |
-
content:
|
| 392 |
-
application/json:
|
| 393 |
-
schema:
|
| 394 |
-
type: array
|
| 395 |
-
items:
|
| 396 |
-
$ref: '#/components/schemas/cost'
|
| 397 |
-
examples:
|
| 398 |
-
USD:
|
| 399 |
-
description: Cost in `US Dollars`
|
| 400 |
-
value: |
|
| 401 |
-
{
|
| 402 |
-
amount: 10,
|
| 403 |
-
currency: USD
|
| 404 |
-
}
|
| 405 |
-
INR:
|
| 406 |
-
description: Cost in `Indian Rupees`
|
| 407 |
-
value: |
|
| 408 |
-
{
|
| 409 |
-
amount: 700,
|
| 410 |
-
currency: INR
|
| 411 |
-
}
|
| 412 |
-
/object-containg-array-property-with-example:
|
| 413 |
-
get:
|
| 414 |
-
summary: Object schema with array type property containing example
|
| 415 |
-
tags:
|
| 416 |
-
- Providing Examples
|
| 417 |
-
responses:
|
| 418 |
-
200:
|
| 419 |
-
description: Object with array type property containing example
|
| 420 |
-
content:
|
| 421 |
-
application/json:
|
| 422 |
-
schema:
|
| 423 |
-
$ref: "#/components/schemas/ObjectWithArrayPropExample"
|
| 424 |
-
/examples-anyOf:
|
| 425 |
-
get:
|
| 426 |
-
tags:
|
| 427 |
-
- Providing Examples
|
| 428 |
-
summary: AnyOf schemas with examples as part of the subschema
|
| 429 |
-
responses:
|
| 430 |
-
'200':
|
| 431 |
-
description: AnyOf schemas with examples as part of the subschema
|
| 432 |
-
content:
|
| 433 |
-
application/problem+json:
|
| 434 |
-
schema:
|
| 435 |
-
anyOf:
|
| 436 |
-
- title: AnyOf example 1
|
| 437 |
-
description: First example
|
| 438 |
-
type: object
|
| 439 |
-
properties:
|
| 440 |
-
foo:
|
| 441 |
-
type: string
|
| 442 |
-
bar:
|
| 443 |
-
type: integer
|
| 444 |
-
example:
|
| 445 |
-
foo: foo
|
| 446 |
-
bar: 42
|
| 447 |
-
- title: Second anyOf
|
| 448 |
-
description: Another example
|
| 449 |
-
type: array
|
| 450 |
-
items:
|
| 451 |
-
type: object
|
| 452 |
-
properties:
|
| 453 |
-
foo:
|
| 454 |
-
type: string
|
| 455 |
-
quux:
|
| 456 |
-
type: array
|
| 457 |
-
items:
|
| 458 |
-
type: number
|
| 459 |
-
example:
|
| 460 |
-
foo: foo
|
| 461 |
-
quux: [ 42, 24 ]
|
| 462 |
-
- title: No example defined
|
| 463 |
-
type: array
|
| 464 |
-
items:
|
| 465 |
-
type: object
|
| 466 |
-
properties:
|
| 467 |
-
foo:
|
| 468 |
-
type: string
|
| 469 |
-
quux:
|
| 470 |
-
type: array
|
| 471 |
-
items:
|
| 472 |
-
type: number
|
| 473 |
-
/examples-anyOf-with-general-properties:
|
| 474 |
-
get:
|
| 475 |
-
tags:
|
| 476 |
-
- Providing Examples
|
| 477 |
-
summary: AnyOf schemas with general properties
|
| 478 |
-
responses:
|
| 479 |
-
'200':
|
| 480 |
-
description: AnyOf schemas with general properties
|
| 481 |
-
content:
|
| 482 |
-
application/problem+json:
|
| 483 |
-
schema:
|
| 484 |
-
title: A composed object
|
| 485 |
-
type: object
|
| 486 |
-
properties:
|
| 487 |
-
common:
|
| 488 |
-
type: string
|
| 489 |
-
other:
|
| 490 |
-
type: number
|
| 491 |
-
anyOf:
|
| 492 |
-
- title: Schema 1
|
| 493 |
-
type: object
|
| 494 |
-
properties:
|
| 495 |
-
foo:
|
| 496 |
-
type: string
|
| 497 |
-
bar:
|
| 498 |
-
type: integer
|
| 499 |
-
example:
|
| 500 |
-
foo: foo
|
| 501 |
-
bar: 42
|
| 502 |
-
- title: Second schema
|
| 503 |
-
type: object
|
| 504 |
-
properties:
|
| 505 |
-
baz:
|
| 506 |
-
type: string
|
| 507 |
-
format: url
|
| 508 |
-
/examples-oneOf:
|
| 509 |
-
get:
|
| 510 |
-
tags:
|
| 511 |
-
- Providing Examples
|
| 512 |
-
summary: OneOf schema with examples as part of the subschema
|
| 513 |
-
responses:
|
| 514 |
-
'200':
|
| 515 |
-
description: OneOf schema with examples as part of the subschema
|
| 516 |
-
content:
|
| 517 |
-
application/problem+json:
|
| 518 |
-
schema:
|
| 519 |
-
oneOf:
|
| 520 |
-
- title: Schema 1
|
| 521 |
-
type: object
|
| 522 |
-
properties:
|
| 523 |
-
foo:
|
| 524 |
-
type: string
|
| 525 |
-
bar:
|
| 526 |
-
type: integer
|
| 527 |
-
example:
|
| 528 |
-
foo: foo
|
| 529 |
-
bar: 42
|
| 530 |
-
- title: Second schema
|
| 531 |
-
type: object
|
| 532 |
-
properties:
|
| 533 |
-
baz:
|
| 534 |
-
type: string
|
| 535 |
-
format: url
|
| 536 |
-
/examples-allOf:
|
| 537 |
-
get:
|
| 538 |
-
tags:
|
| 539 |
-
- Providing Examples
|
| 540 |
-
summary: AllOf schemas with examples as part of the subschema
|
| 541 |
-
responses:
|
| 542 |
-
'200':
|
| 543 |
-
description: AllOf schemas with examples as part of the subschema
|
| 544 |
-
content:
|
| 545 |
-
application/problem+json:
|
| 546 |
-
schema:
|
| 547 |
-
allOf:
|
| 548 |
-
- title: Schema 1
|
| 549 |
-
type: object
|
| 550 |
-
properties:
|
| 551 |
-
foo:
|
| 552 |
-
type: string
|
| 553 |
-
bar:
|
| 554 |
-
type: integer
|
| 555 |
-
- title: Second schema
|
| 556 |
-
type: object
|
| 557 |
-
properties:
|
| 558 |
-
baz:
|
| 559 |
-
type: string
|
| 560 |
-
format: url
|
| 561 |
-
/examples-allOf-anyOf:
|
| 562 |
-
get:
|
| 563 |
-
tags:
|
| 564 |
-
- Providing Examples
|
| 565 |
-
summary: Combination of allOf & nested anyOf schemas
|
| 566 |
-
responses:
|
| 567 |
-
'200':
|
| 568 |
-
description: Combination of allOf & nested anyOf schemas
|
| 569 |
-
content:
|
| 570 |
-
application/problem+json:
|
| 571 |
-
schema:
|
| 572 |
-
allOf:
|
| 573 |
-
- title: Schema 1
|
| 574 |
-
type: object
|
| 575 |
-
properties:
|
| 576 |
-
foo:
|
| 577 |
-
type: string
|
| 578 |
-
bar:
|
| 579 |
-
type: integer
|
| 580 |
-
- title: Second schema
|
| 581 |
-
anyOf:
|
| 582 |
-
- type: object
|
| 583 |
-
properties:
|
| 584 |
-
baz:
|
| 585 |
-
type: string
|
| 586 |
-
format: url
|
| 587 |
-
- type: object
|
| 588 |
-
properties:
|
| 589 |
-
foobar:
|
| 590 |
-
type: string
|
| 591 |
-
components:
|
| 592 |
-
schemas:
|
| 593 |
-
cost:
|
| 594 |
-
type: object
|
| 595 |
-
properties:
|
| 596 |
-
amount:
|
| 597 |
-
type: integer
|
| 598 |
-
description: Amount
|
| 599 |
-
currency:
|
| 600 |
-
description: Currency Code
|
| 601 |
-
type: string
|
| 602 |
-
currencies:
|
| 603 |
-
type: array
|
| 604 |
-
items:
|
| 605 |
-
type: object
|
| 606 |
-
properties:
|
| 607 |
-
currencyCode:
|
| 608 |
-
type: string
|
| 609 |
-
evaluationDate:
|
| 610 |
-
type: string
|
| 611 |
-
format: date-time
|
| 612 |
-
example:
|
| 613 |
-
- currencyCode: USD
|
| 614 |
-
evaluationDate: '2017-07-21T17:32:28Z'
|
| 615 |
-
- currencyCode: INR
|
| 616 |
-
evaluationDate: '2017-07-21T17:32:28Z'
|
| 617 |
-
ArrayOfInt-1:
|
| 618 |
-
type: array
|
| 619 |
-
items:
|
| 620 |
-
type: integer
|
| 621 |
-
format: int64
|
| 622 |
-
example: [1, 2, 3, 4]
|
| 623 |
-
ArrayOfInt-2:
|
| 624 |
-
type: array
|
| 625 |
-
items:
|
| 626 |
-
type: integer
|
| 627 |
-
format: int64
|
| 628 |
-
example: 1
|
| 629 |
-
PersonObject:
|
| 630 |
-
type: object
|
| 631 |
-
properties:
|
| 632 |
-
name:
|
| 633 |
-
type: string
|
| 634 |
-
age:
|
| 635 |
-
type: integer
|
| 636 |
-
example:
|
| 637 |
-
name: name-1
|
| 638 |
-
age: 1
|
| 639 |
-
ObjectWithArrayPropExample:
|
| 640 |
-
type: object
|
| 641 |
-
properties:
|
| 642 |
-
numberProp:
|
| 643 |
-
type: number
|
| 644 |
-
example: 1000
|
| 645 |
-
stringProp:
|
| 646 |
-
type: string
|
| 647 |
-
enum: [value0, value1]
|
| 648 |
-
arrayProp:
|
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