class

Swagger

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

Constructors

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

Class methods

from_file(path : Path | String)
Source

Instance methods

basePath
Source
basePath=(basePath : String)
Source
consumes
Source
consumes=(consumes : Array(String) | Nil)
Source
definitions
Source
definitions=(definitions : Hash(String, Schema))
Source
find(ref : String) : Schema | Parameter | Response
Source
find?(ref : String) : Schema | Parameter | Response | Nil
Source
info
Source
info=(info : Info)
Source
parameters
Source
parameters=(parameters : Hash(String, Parameter))
Source
paths

property securityDefinitions : Hash(String, SecurityScheme)

Source
paths=(paths : Hash(String, PathItem))

property securityDefinitions : Hash(String, SecurityScheme)

Source
produces
Source
produces=(produces : Array(String) | Nil)
Source
responses
Source
responses=(responses : Hash(String, Response))
Source
swagger
Source
swagger=(swagger : String)
Source
tags
Source
tags=(tags : Array(Tag) | Nil)
Source

Nested types