MCP::Protocol::StringSchema
Inherits JSON::Serializable < Struct < Value < Object
Schema definition for string properties.
Fields map to JSON Schema string with the MCP-required camelCase
keys. Nil fields are omitted from serialization.
Constructors
new(pull : JSON::PullParser)
Sourcenew(title : Nil | String = nil, description : Nil | String = nil, min_length : Int32 | Nil = nil, max_length : Int32 | Nil = nil, format : Nil | String = nil, default : Nil | String = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
Set both minimum and maximum length. Raises if min > max.
type
Source