struct

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(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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

builder(values : Array(String))

Start building a schema from the given string values.

Source

Instance methods

default
Source
description
Source
enum
Source
max_items
Source
min_items
Source
one_of
Source
title
Source
type
Source