|
Qore Swagger Module Reference
1.0.1
|
describes a single HTTP header More...

Public Member Functions | |
| constructor (hash oh, SwaggerSchema swagger) | |
| Constructor. More... | |
Public Member Functions inherited from Swagger::ObjectBase | |
| constructor () | |
| Constructor. | |
| constructor (hash oh) | |
| Constructor. More... | |
| constructor (ObjectBase other) | |
| copy constructor | |
| initialize (hash oh) | |
| Initialize. More... | |
Public Member Functions inherited from Swagger::SchemaBase | |
| constructor (string objType, hash oh) | |
| Constructor. More... | |
| constructor (SchemaBase other) | |
| Copy constructor. | |
Static Private Member Functions | |
| static | checkValueType (auto value, string type, *SchemaObject items, *string loc) |
| validates default values | |
describes a single HTTP header
| Swagger::HeaderObject::constructor | ( | hash | oh, |
| SwaggerSchema | swagger | ||
| ) |
Constructor.
| oh | deserialized hash from the source schema description describing a single HTTP header |
| swagger | the REST schema for resolving references |
| INVALID-FIELD-TYPE | field has invalid type |
| INVALID-FIELD-VALUE | field has invalid value |
| REQUIRED-FIELD-MISSING | required field is missing |
| *string Swagger::HeaderObject::collectionFormat |
Determines the format of the array if type array is used.
Possible values are:
"csv": comma separated values; ex: foo,bar"ssv": space separated values; ex: foo bar"tsv": tab separated values; ex: foo\tbar"pipes": pipe separated values; ex: foo|barDefault value is "csv".
| auto Swagger::HeaderObject::defaultVal |
Declares the value of the header that the server will use if none is provided.
(Note: "default" has no meaning for required headers.) See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2. Unlike JSON Schema this value MUST conform to the defined type for the header.
| string Swagger::HeaderObject::type |
Required. The type of the object.
The value MUST be one of "string", "number", "integer", "boolean", or "array".