Gemini::Schema
Inherits JSON::Serializable < Reference < Object
The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object.
Constructors
Instance methods
A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. (Optional)
A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. (Optional)
Possible values of the element of Type::String with enum format. For example we can define an Enum Direction as:
Schema.new(
type: :string,
format: "enum",
enumeration: ["EAST", "NORTH", "SOUTH", "WEST"]
)
(Optional)
Possible values of the element of Type::String with enum format. For example we can define an Enum Direction as:
Schema.new(
type: :string,
format: "enum",
enumeration: ["EAST", "NORTH", "SOUTH", "WEST"]
)
(Optional)
The format of the data. (Optional) Supported formats:
- NUMBER: float, double
- INTEGER: int32, int64
- STRING: enum
The format of the data. (Optional) Supported formats:
- NUMBER: float, double
- INTEGER: int32, int64
- STRING: enum
Maximum number of the elements for Type::Array. (Optional)
Minimum number of the elements for Type::Array. (Optional)