api-typescript-generator / Modules / openapi / OpenApiExpandedSchema
openapi.OpenApiExpandedSchema
The OpenAPI schema with all properties expanded (without "true" and "false" shortcuts).
- $comment
- additionalProperties
- allOf
- anyOf
- const
- contains
- default
- deprecated
- description
- discriminator
- enum
- example
- examples
- exclusiveMaximum
- exclusiveMinimum
- externalDocumentation
- format
- items
- maxContains
- maxItems
- maxLength
- maxProperties
- maximum
- minContains
- minItems
- minLength
- minProperties
- minimum
- multipleOf
- name
- not
- nullable
- oneOf
- pattern
- patternProperties
- prefixItems
- properties
- required
- title
- type
- uniqueItems
• Optional $comment: string
A comment to describe the schema.
See
https://json-schema.org/understanding-json-schema/reference/comments#comments
• Optional additionalProperties: OpenApiSchema
The schema of the additional properties of the object.
See
https://json-schema.org/understanding-json-schema/reference/object#additionalproperties
• Optional allOf: OpenApiSchema[]
(AND) Must be valid against all of the subschemas.
See
https://json-schema.org/understanding-json-schema/reference/combining#allOf
• Optional anyOf: OpenApiSchema[]
(OR) Must be valid against any of the subschemas.
See
https://json-schema.org/understanding-json-schema/reference/combining#anyOf
• Optional const: OpenApiSchemaPrimitiveValue
The value must be exactly the given value.
See
https://json-schema.org/understanding-json-schema/reference/const
• Optional contains: OpenApiSchema
The schema to check if array has specific items.
See
https://json-schema.org/understanding-json-schema/reference/array#contains
• Optional default: unknown
A default value for the schema.
See
https://json-schema.org/understanding-json-schema/reference/annotations
• Optional deprecated: boolean
Whether the schema is deprecated.
See
https://json-schema.org/understanding-json-schema/reference/annotations
• Optional description: string
A description to describe the schema.
See
https://json-schema.org/understanding-json-schema/reference/annotations
• Optional discriminator: Object
A discriminator for polymorphism.
See
https://swagger.io/specification/#composition-and-inheritance-polymorphism
| Name | Type |
|---|---|
mapping? |
Record<string, string> |
propertyName |
string |
• Optional enum: OpenApiSchemaPrimitiveValue[]
The value must be one of the given values.
See
https://json-schema.org/understanding-json-schema/reference/enum
• Optional example: unknown
An example for the schema.
See
https://json-schema.org/understanding-json-schema/reference/annotations
• Optional examples: Record<string, OpenApiExample>
Examples for the schema.
See
https://swagger.io/specification/#example-object
• Optional exclusiveMaximum: number
The number must have a lower value than the given value.
See
https://json-schema.org/understanding-json-schema/reference/numeric#range
• Optional exclusiveMinimum: number
The number must have a higher value than the given value.
See
https://json-schema.org/understanding-json-schema/reference/numeric#range
• Optional externalDocumentation: OpenApiExternalDocumentation
A reference to an external documentation.
See
https://swagger.io/specification/#external-documentation-object
• Optional format: OpenApiFormats
• Optional items: OpenApiSchema
The schema of the items in the array.
See
https://json-schema.org/understanding-json-schema/reference/array#items
• Optional maxContains: number
The maximum number of items in the array that must be valid against the contains schema.
See
https://json-schema.org/understanding-json-schema/reference/array#mincontains-maxcontains
• Optional maxItems: number
The maximum number of items in the array.
See
https://json-schema.org/understanding-json-schema/reference/array#length
• Optional maxLength: number
The maximum length of the string.
See
https://json-schema.org/understanding-json-schema/reference/string#length
• Optional maxProperties: number
Maximum number of properties in the object.
See
https://json-schema.org/understanding-json-schema/reference/object#size
• Optional maximum: number
The maximum value of the number.
See
https://json-schema.org/understanding-json-schema/reference/numeric#range
• Optional minContains: number
The minimum number of items in the array that must be valid against the contains schema.
See
https://json-schema.org/understanding-json-schema/reference/array#mincontains-maxcontains
• Optional minItems: number
The minimum number of items in the array.
See
https://json-schema.org/understanding-json-schema/reference/array#length
• Optional minLength: number
The minimum length of the string.
See
https://json-schema.org/understanding-json-schema/reference/string#length
• Optional minProperties: number
Minimum number of properties in the object.
See
https://json-schema.org/understanding-json-schema/reference/object#size
• Optional minimum: number
The minimum value of the number.
See
https://json-schema.org/understanding-json-schema/reference/numeric#range
• Optional multipleOf: number
The number must be a multiple of the given value.
See
https://json-schema.org/understanding-json-schema/reference/numeric#multiples
• Optional name: string
The name of the schema. Used for TypeScript generation.
• Optional not: OpenApiSchema
(NOT) Must not be valid against the given schema.
See
https://json-schema.org/understanding-json-schema/reference/combining#not
• Optional nullable: boolean
• Optional oneOf: OpenApiSchema[]
(XOR) Must be valid against exactly one of the subschemas.
See
https://json-schema.org/understanding-json-schema/reference/combining#oneOf
• Optional pattern: string
The RegEx pattern the string must match.
See
https://json-schema.org/understanding-json-schema/reference/string#regexp
• Optional patternProperties: Record<string, OpenApiSchema>
The schema of the properties of the object that match the pattern.
See
https://json-schema.org/understanding-json-schema/reference/object#patternProperties
• Optional prefixItems: OpenApiSchema[]
The schema to check if array has specific items at the beginning.
See
https://json-schema.org/understanding-json-schema/reference/array#tupleValidation
• Optional properties: Record<string, OpenApiSchema>
The schema of the properties of the object.
See
https://json-schema.org/understanding-json-schema/reference/object#properties
• Optional required: string[]
The required properties of the object.
See
https://json-schema.org/understanding-json-schema/reference/object#required
• Optional title: string
A title to describe the schema.
See
https://json-schema.org/understanding-json-schema/reference/annotations
• Optional type: "object" | OpenApiPrimitiveTypes | OpenApiPrimitiveTypes[] | "array"
• Optional uniqueItems: boolean
Whether the items in the array must be unique.
See
https://json-schema.org/understanding-json-schema/reference/array#uniqueItems