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(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
additional_properties
Sourcedefault
Sourcedescription
Sourceenum_values
Sourceitems
Sourcemax_items
Sourcemax_length
Sourcemaximum
Sourcemin_items
Sourcemin_length
Sourceminimum
Sourcepattern
Sourceproperties
Sourcerequired
Sourcetype
Source