class

Anthropic::Schema::Property

Inherits JSON::Serializable < Reference < Object

Property definition that converts to JSON Schema Note: This is a class (not struct) because it can contain recursive references (e.g., array items or nested object properties)

Constructors

new(type : String, description : String | Nil = nil, enum_values : Array(String) | Nil = nil, items : Property | Nil = nil, properties : Hash(String, Property) | Nil = nil, required : Array(String) | Nil = nil, default : JSON::Any | Nil = nil, minimum : Float64 | Nil = nil, maximum : Float64 | Nil = nil, min_length : Int32 | Nil = nil, max_length : Int32 | Nil = nil, min_items : Int32 | Nil = nil, max_items : Int32 | Nil = nil, pattern : String | Nil = nil, additional_properties : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

additional_properties
Source
default
Source
description
Source
enum_values
Source
items
Source
max_items
Source
max_length
Source
maximum
Source
min_items
Source
min_length
Source
minimum
Source
pattern
Source
properties
Source
required
Source
type
Source