Schema
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.
Constructors
Properties
Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt.
Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set format to enum and provide the list of possible values in enum. For example: 1. To define directions: {type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]} 2. To define apartment numbers: {type:INTEGER, format:enum, enum:["101", "201", "301"]}
Optional. If type is OBJECT, max_properties specifies the maximum number of properties that can be provided.
Optional. If type is OBJECT, min_properties specifies the minimum number of properties that can be provided.
Optional. If type is OBJECT, properties is a map of property names to schema definitions for each property of the object.
Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties.