Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
Signature:
export interface FunctionDeclarationSchemaProperty
Properties
Property | Type | Description |
---|---|---|
description | string | Optional. The description of the property. |
enum | string[] | Optional. The enum of the property. |
example | unknown | Optional. The example of the property. |
format | string | Optional. The format of the property. |
items | FunctionDeclarationSchema | Optional. The items of the property. FunctionDeclarationSchema |
nullable | boolean | Optional. Whether the property is nullable. |
properties | { [k: string]: FunctionDeclarationSchema; } | Optional. Map of FunctionDeclarationSchema. |
required | string[] | Optional. Array of required property. |
type | FunctionDeclarationSchemaType | Optional. The type of the property. FunctionDeclarationSchemaType. |
FunctionDeclarationSchemaProperty.description
Optional. The description of the property.
Signature:
description?: string;
FunctionDeclarationSchemaProperty.enum
Optional. The enum of the property.
Signature:
enum?: string[];
FunctionDeclarationSchemaProperty.example
Optional. The example of the property.
Signature:
example?: unknown;
FunctionDeclarationSchemaProperty.format
Optional. The format of the property.
Signature:
format?: string;
FunctionDeclarationSchemaProperty.items
Optional. The items of the property. FunctionDeclarationSchema
Signature:
items?: FunctionDeclarationSchema;
FunctionDeclarationSchemaProperty.nullable
Optional. Whether the property is nullable.
Signature:
nullable?: boolean;
FunctionDeclarationSchemaProperty.properties
Optional. Map of FunctionDeclarationSchema.
Signature:
properties?: {
[k: string]: FunctionDeclarationSchema;
};
FunctionDeclarationSchemaProperty.required
Optional. Array of required property.
Signature:
required?: string[];
FunctionDeclarationSchemaProperty.type
Optional. The type of the property. FunctionDeclarationSchemaType.
Signature:
type?: FunctionDeclarationSchemaType;