MCP::Protocol::EnumSchema
Inherits JSON::Serializable < Struct < Value < Object
The unified enum schema, representing any of the three variants above.
Construct via EnumSchema.builder(values).
Constructors
new(pull : JSON::PullParser)
Sourcenew(type : String = "string", title : String | Nil = nil, description : String | Nil = nil, enum __arg0 : Array(String) | Nil = nil, one_of : Array(ConstTitle) | Nil = nil, min_items : Int64 | Nil = nil, max_items : Int64 | Nil = nil, default : JSON::Any | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
Instance methods
default
Sourcedescription
Sourceenum
Sourcemax_items
Sourcemin_items
Sourceone_of
Sourcetitle
Sourcetype
Source