Swagger
Inherits YAML::Serializable < JSON::Serializable < Reference < Object
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceClass methods
from_file(path : Path | String)
SourceInstance methods
basePath
SourcebasePath=(basePath : String)
Sourceconsumes
Sourceconsumes=(consumes : Array(String) | Nil)
Sourcedefinitions
Sourcedefinitions=(definitions : Hash(String, Schema))
Sourcefind(ref : String) : Schema | Parameter | Response
Sourcefind?(ref : String) : Schema | Parameter | Response | Nil
Sourceinfo
Sourceinfo=(info : Info)
Sourceparameters
Sourceparameters=(parameters : Hash(String, Parameter))
Sourcepaths=(paths : Hash(String, PathItem))
property securityDefinitions : Hash(String, SecurityScheme)
produces
Sourceproduces=(produces : Array(String) | Nil)
Sourceresponses
Sourceresponses=(responses : Hash(String, Response))
Sourceswagger
Sourceswagger=(swagger : String)
Sourcetags
Sourcetags=(tags : Array(Tag) | Nil)
Source