Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-17 UTC."],[],[],null,["# AnyOfSchema class\n\nSchema 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.\n\n**Signature:** \n\n export declare class AnyOfSchema extends Schema \n\n**Extends:** [Schema](./ai.schema.md#schema_class)\n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|---------------------------------------------------------------------------|-----------|------------------------------------------------------|\n| [(constructor)(schemaParams)](./ai.anyofschema.md#anyofschemaconstructor) | | Constructs a new instance of the `AnyOfSchema` class |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|-----------------------------------------------|-----------|----------------------------------------|-------------|\n| [anyOf](./ai.anyofschema.md#anyofschemaanyof) | | [TypedSchema](./ai.md#typedschema)\\[\\] | |\n\nAnyOfSchema.(constructor)\n-------------------------\n\nConstructs a new instance of the `AnyOfSchema` class\n\n**Signature:** \n\n constructor(schemaParams: SchemaParams & {\n anyOf: TypedSchema[];\n });\n\n#### Parameters\n\n| Parameter | Type | Description |\n|--------------|-------------------------------------------------------------------------------------------------------------------|-------------|\n| schemaParams | [SchemaParams](./ai.schemaparams.md#schemaparams_interface) \\& { anyOf: [TypedSchema](./ai.md#typedschema)\\[\\]; } | |\n\nAnyOfSchema.anyOf\n-----------------\n\n**Signature:** \n\n anyOf: TypedSchema[];"]]