class Open::Api::Schema
- Open::Api::Schema
- Reference
- Object
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
open-api/schema.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(schema_type : String, default : String | Bool | Int32 | Int64 | Float32 | Float64 | Nil = nil, items : Open::Api::SchemaRef | Nil = nil, properties : Hash(String, Open::Api::SchemaRef) | Nil = nil, required : Array(String) | Nil = nil, format : String | Nil = nil, example : Open::Api::ExampleValue = nil)
Instance Method Summary
- #additional_properties : Open::Api::SchemaRef | Nil
- #additional_properties=(additional_properties : Open::Api::SchemaRef | Nil)
- #default : String | Bool | Int32 | Int64 | Float32 | Float64 | Nil
- #default=(default : String | Bool | Int32 | Int64 | Float32 | Float64 | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #example : Open::Api::ExampleValue
- #example=(example : Open::Api::ExampleValue)
- #format : String | Nil
- #format=(format : String | Nil)
- #items : Open::Api::SchemaRef | Nil
- #items=(items : Open::Api::SchemaRef | Nil)
- #properties : Hash(String, Open::Api::SchemaRef) | Nil
- #properties=(properties : Hash(String, Open::Api::SchemaRef) | Nil)
- #required : Array(String) | Nil
- #required=(required : Array(String) | Nil)
- #schema_type : String
- #schema_type=(schema_type : String)
- #to_h
Macro Summary
Constructor Detail
def self.new(schema_type : String, default : String | Bool | Int32 | Int64 | Float32 | Float64 | Nil = nil, items : Open::Api::SchemaRef | Nil = nil, properties : Hash(String, Open::Api::SchemaRef) | Nil = nil, required : Array(String) | Nil = nil, format : String | Nil = nil, example : Open::Api::ExampleValue = nil)
#