Schema class representing a value that can conform to any of the provided sub-schemas. This is useful when a field can accept multiple distinct types or structures.
Signature:
export declare class AnyOfSchema extends Schema
Extends: Schema
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(schemaParams) | Constructs a new instance of the AnyOfSchema class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| anyOf | TypedSchema[] |
AnyOfSchema.(constructor)
Constructs a new instance of the AnyOfSchema class
Signature:
constructor(schemaParams: SchemaParams & {
anyOf: TypedSchema[];
});
Parameters
| Parameter | Type | Description |
|---|---|---|
| schemaParams | SchemaParams & { anyOf: TypedSchema[]; } |
AnyOfSchema.anyOf
Signature:
anyOf: TypedSchema[];