Class: Yori::Schema::V3::Server
- Inherits:
-
Yori::SchemaBase
- Object
- Hash
- Yori::SchemaBase
- Yori::Schema::V3::Server
- Defined in:
- lib/yori/schema/v3/server.rb
Overview
Server: An object representing a Server. @url: REQUIRED. A URL to the target host.
This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served.
Variable substitutions will be made when a variable is named in {brackets}.
@description: An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. @variables: A map between a variable name and its value. The value is used for substitution in the server’s URL template.
Instance Attribute Summary
Attributes inherited from Yori::SchemaBase
Instance Method Summary collapse
Methods inherited from Yori::SchemaBase
eval_class!, eval_hash!, eval_input!, #ref, #validator
Instance Method Details
#validate! ⇒ Object
18 19 20 |
# File 'lib/yori/schema/v3/server.rb', line 18 def validate! validate_require_fields!('url') end |