struct Swagger::Objects::Schema
- Swagger::Objects::Schema
- Struct
- Value
- Object
Overview
Schema Object
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject
Included Modules
- JSON::Serializable
Defined in:
swagger/objects/schema.crConstructors
- .new(pull : JSON::PullParser)
- .new(type : String | Nil = nil, format : String | Nil = nil, required : Array(String) | Nil = nil, default : String | Int32 | Int64 | Float64 | Bool | Nil = nil, properties : Hash(String, Property) | Nil = nil, ref : String | Nil = nil)
Class Method Summary
Instance Method Summary
- #default : String | Int32 | Int64 | Float64 | Bool | Nil
- #format : String | Nil
- #properties : Hash(String, Property) | Nil
- #ref : String | Nil
- #required : Array(String) | Nil
- #type : String | Nil
Constructor Detail
def self.new(type : String | Nil = nil, format : String | Nil = nil, required : Array(String) | Nil = nil, default : String | Int32 | Int64 | Float64 | Bool | Nil = nil, properties : Hash(String, Property) | Nil = nil, ref : String | Nil = nil)
#