diff --git a/cypress/integration/__snapshots__/testSchemaSnapshots.spec.ts.snap b/cypress/integration/__snapshots__/testSchemaSnapshots.spec.ts.snap new file mode 100644 index 000000000..f2de8c42b --- /dev/null +++ b/cypress/integration/__snapshots__/testSchemaSnapshots.spec.ts.snap @@ -0,0 +1,4738 @@ +exports[`Schema Snapshots > should match the snapshot for all-of-with-array-items #0`] = ` +
GET+ +/allof-array-items
A list of books demonstrating allOf with items as children.
+Schema:
+type: array
items:
$ref: '#/components/schemas/Book'
+
+ Schema Components:
+BookBase:
type: object
required:
- id
- title
- author
properties:
id:
type: integer
format: int64
description: Unique identifier for the book
title:
type: string
description: The title of the book
author:
type: string
description: The author of the book
AdditionalBookInfo:
type: object
properties:
publishedDate:
type: string
format: date
description: The date the book was published
genre:
type: string
description: The genre of the book
tags:
type: array
items:
type: string
description: Tags associated with the book
Book:
allOf:
- $ref: '#/components/schemas/BookBase'
- $ref: '#/components/schemas/AdditionalBookInfo'
+
+ GET+ +/allof-deep-merging
Schema:
+allOf:
- type: object
properties:
deepProp:
type: object
properties:
innerProp1:
type: string
- type: object
properties:
deepProp:
type: object
properties:
innerProp2:
type: number
+
+ GET+ +/allof-nested
An example demonstrating nested allOf within allOf.
+Schema:
+allOf:
- type: object
properties:
outerProp:
type: object
allOf:
- type: object
properties:
innerProp1:
type: string
- type: object
properties:
innerProp2:
type: number
- type: object
properties:
otherOuterProp:
type: string
+
+ GET+ +/allof-same-level-properties
Schema:
+allOf:
- type: object
properties:
allOfProp1:
type: string
allOfProp2:
type: string
properties:
parentProp1:
type: string
parentProp2:
type: string
+
+ GET+ +/allof-shared-required
Schema:
+allOf:
- type: object
properties:
sharedProp:
type: string
required: [sharedProp]
- type: object
properties:
anotherProp:
type: number
required: [anotherProp]
+
+ GET+ +/anyof-oneof
Schema:
+anyOf:
- oneOf:
- type: string
- type: integer
- type: boolean
+
+ GET+ +/anyof-primitives
Schema:
+anyOf:
- type: string
- type: integer
- type: boolean
+
+ GET+ +/discriminator-basic-mapping
Schema:
+type: object
discriminator:
propertyName: type
mapping:
typeA: "#/components/schemas/TypeA"
typeB: "#/components/schemas/TypeB"
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
+
+ GET+ +/discriminator-basic
Schema:
+type: object
discriminator:
propertyName: type
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
+
+ GET+ +/discriminator-allof-mapping
Schema:
+type: object
discriminator:
propertyName: type
mapping:
typeA: "#/components/schemas/TypeA"
typeB: "#/components/schemas/TypeB"
properties:
type:
type: string
allOf:
- oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
- type: object
properties:
sharedProp:
type: string
+
+ GET+ +/discriminator-allof
Schema:
+type: object
discriminator:
propertyName: type
properties:
type:
type: string
allOf:
- oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
- type: object
properties:
sharedProp:
type: string
+
+ GET+ +/discriminator-nested-mapping
Schema:
+type: object
discriminator:
propertyName: type
mapping:
nestedTypeA: "#/components/schemas/NestedTypeA"
nestedTypeB: "#/components/schemas/NestedTypeB"
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/NestedTypeA'
- $ref: '#/components/schemas/NestedTypeB'
+
+ GET+ +/discriminator-nested
Schema:
+type: object
discriminator:
propertyName: type
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/NestedTypeA'
- $ref: '#/components/schemas/NestedTypeB'
+
+ GET+ +/discriminator-required-mapping
Schema:
+type: object
discriminator:
propertyName: type
mapping:
typeA: "#/components/schemas/TypeA"
typeB: "#/components/schemas/TypeB"
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
+
+ GET+ +/discriminator-required
Schema:
+type: object
discriminator:
propertyName: type
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
+
+ GET+ +/discriminator-shared-mapping
Schema:
+type: object
discriminator:
propertyName: type
mapping:
typeA: "#/components/schemas/TypeA"
typeB: "#/components/schemas/TypeB"
properties:
type:
type: string
sharedProp:
type: string
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
+
+ GET+ +/discriminator-shared
Schema:
+type: object
discriminator:
propertyName: type
properties:
type:
type: string
sharedProp:
type: string
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
+
+ GET+ +/filter-multiple-status
Get all entities or search by multiple status
+GET+ +/filter-one-status
Get all entities or search by status
+GET+ +/multiple-allof-nested
Schema:
+allOf:
- type: object
properties:
outerProp1:
type: object
properties:
innerProp1:
type: string
- type: object
properties:
outerProp2:
type: object
properties:
innerProp2:
type: number
+
+ GET+ +/oneof-complex-types
Schema:
+type: object
properties:
oneOfProperty:
oneOf:
- type: object
properties:
objectProp:
type: string
- type: array
items:
type: number
+
+ GET+ +/oneof-nested
Schema:
+type: object
properties:
oneOfProperty:
oneOf:
- type: object
properties:
nestedOneOfProp:
oneOf:
- type: string
- type: number
- type: boolean
+
+ GET+ +/oneof-primitive-types
Schema:
+type: object
properties:
oneOfProperty:
oneOf:
- type: string
- type: number
- type: boolean
+
+ GET+ +/oneof-required-properties
Schema:
+type: object
properties:
oneOfProperty:
oneOf:
- type: object
properties:
requiredPropA:
type: string
required: ["requiredPropA"]
- type: object
properties:
requiredPropB:
type: number
required: ["requiredPropB"]
+
+ GET+ +/oneof-shared-properties
Schema:
+type: object
properties:
sharedProp:
type: string
oneOfProperty:
oneOf:
- type: object
properties:
specificPropA:
type: string
- type: object
properties:
specificPropB:
type: number
+
+ The date the book was published
The genre of the book
Tags associated with the book
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
type
string
+
+ Possible values: [typeA
,
+ typeB
]
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
type
string
+
+ Possible values: [typeA
,
+ typeB
]
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
type
string
+
+ Possible values: [typeA
,
+ typeB
]
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
oneOf
+
+ Possible values:
+ [nestedTypeA
]
+
nestedA
object
+ Possible values:
+ [nestedTypeB
]
+
nestedB
object
oneOf
+
+ Possible values:
+ [nestedTypeA
]
+
nestedA
object
+ Possible values:
+ [nestedTypeB
]
+
nestedB
object
type
string
+
+ Possible values: [nestedTypeA
,
+ nestedTypeB
]
+
+ Possible values:
+ [nestedTypeA
]
+
nestedA
object
+ Possible values:
+ [nestedTypeB
]
+
nestedB
object
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
type
string
+
+ Possible values: [typeA
,
+ typeB
]
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
oneOf
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
type
string
+
+ Possible values: [typeA
,
+ typeB
]
+
+ Possible values: [typeA
]
+
+ Possible values: [typeB
]
+
Unique identifier for the book
The title of the book
The author of the book
The date the book was published
The genre of the book
Tags associated with the book
Unique identifier for the book
The title of the book
The author of the book
Enum Value | +Description | +
---|---|
active | +The entity is active | +
inactive | +The entity is inactive | +
pending | +The entity is pending approval | +
+ Possible values: [active
,
+ inactive
, pending
]
+
Possible values: [nestedTypeA
]
nestedA
object
Possible values: [nestedTypeB
]
nestedB
object
Possible values: [typeA
]
Possible values: [typeB
]