chore: update demo bundle for v2.0.0-rc.70

This commit is contained in:
Alex Varchuk 2022-05-17 11:55:45 +03:00
parent 823e7425f0
commit dc679203da
2 changed files with 306 additions and 216 deletions

View File

@ -960,6 +960,33 @@ components:
schemas: schemas:
ApiResponse: ApiResponse:
type: object type: object
patternProperties:
^S_\\w+\\.[1-9]{2,4}$:
description: The measured skill for hunting
if:
x-displayName: fieldName === 'status'
else:
minLength: 1
maxLength: 10
then:
format: url
type: string
enum:
- success
- failed
^O_\\w+\\.[1-9]{2,4}$:
type: object
properties:
nestedProperty:
type: [string, boolean]
description: The measured skill for hunting
default: lazy
example: adventurous
enum:
- clueless
- lazy
- adventurous
- aggressive
properties: properties:
code: code:
type: integer type: integer
@ -975,7 +1002,7 @@ components:
- type: object - type: object
properties: properties:
huntingSkill: huntingSkill:
type: string type: [string, boolean]
description: The measured skill for hunting description: The measured skill for hunting
default: lazy default: lazy
example: adventurous example: adventurous
@ -1099,15 +1126,26 @@ components:
example: Guru example: Guru
photoUrls: photoUrls:
description: The list of URL to a cute photos featuring pet description: The list of URL to a cute photos featuring pet
type: [string, integer, 'null', array] type: [string, integer, 'null']
minItems: 1 minItems: 1
maxItems: 20 maxItems: 10
xml: xml:
name: photoUrl name: photoUrl
wrapped: true wrapped: true
items: items:
type: string type: string
format: url format: url
if:
x-displayName: isString
type: string
then:
minItems: 1
maxItems: 15
else:
x-displayName: notString
type: [integer, 'null']
minItems: 1
maxItems: 20
friend: friend:
$ref: '#/components/schemas/Pet' $ref: '#/components/schemas/Pet'
tags: tags:
@ -1131,6 +1169,12 @@ components:
petType: petType:
description: Type of a pet description: Type of a pet
type: string type: string
huntingSkill:
type: [integer]
enum:
- 0
- 1
- 2
xml: xml:
name: Pet name: Pet
Tag: Tag:
@ -1198,6 +1242,15 @@ components:
type: string type: string
contentEncoding: base64 contentEncoding: base64
contentMediaType: image/png contentMediaType: image/png
if:
title: userStatus === 10
properties:
userStatus:
enum: [10]
then:
required: ['phone']
else:
required: []
xml: xml:
name: User name: User
requestBodies: requestBodies:

File diff suppressed because one or more lines are too long