struct

MCP::Protocol::IntegerSchema

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(title : Nil | String = nil, description : Nil | String = nil, minimum : Int64 | Nil = nil, maximum : Int64 | Nil = nil, default : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

default
Source
description(val : String) : self
Source
description
Source
maximum
Source
minimum
Source
range(min : Int64, max : Int64) : self

Set minimum and maximum (inclusive). Raises if min > max.

Source
title(val : String) : self
Source
title
Source
type
Source
with_default(val : Int64) : self
Source