class

Open::Api::Schema

Inherits YAML::Serializable < JSON::Serializable < Reference < Object

Constructors

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

additional_properties
Source
additional_properties=(additional_properties : Open::Api::SchemaRef | Nil)
Source
default
Source
default=(default : String | Bool | Int32 | Int64 | Float32 | Float64 | Nil)
Source
description
Source
description=(description : String | Nil)
Source
example
Source
example=(example : Open::Api::ExampleValue)
Source
format
Source
format=(format : String | Nil)
Source
items
Source
items=(items : Open::Api::SchemaRef | Nil)
Source
properties
Source
properties=(properties : Hash(String, Open::Api::SchemaRef) | Nil)
Source
required
Source
required=(required : Array(String) | Nil)
Source
schema_type
Source
schema_type=(schema_type : String)
Source
to_h
Source

Macros

from_type(type)
Source