Qore Swagger Module Reference
2.0.3
|
items schema object for non-body parameters More...
Static Public Member Methods | |
static ParameterItemsSchemaObject | newSchemaObject (string name, hash< auto > oh, SwaggerSchema swagger) |
returns a SchemaObject for the schema definition; resolves references More... | |
static ParameterItemsSchemaObject | newSchemaObject (string name, auto error, SwaggerSchema swagger) |
throws an "INVALID-FIELD-TYPE" exception More... | |
Static Public Member Methods inherited from Swagger::SchemaObject | |
static SchemaObject | newSchemaObject (string name, hash< auto > oh, SwaggerSchema swagger) |
returns a SchemaObject for the schema definition; resolves references More... | |
static SchemaObject | newSchemaObject (string name, auto error, SwaggerSchema swagger) |
throws an "INVALID-FIELD-TYPE" exception More... | |
Static Public Member Methods inherited from Swagger::SchemaBase | |
static bool | checkValueType (reference< auto > value, string type) |
Checks the value against the type. More... | |
Private Member Methods | |
constructor (string name, hash< auto > oh, SwaggerSchema swagger) | |
private constructor; use newSchemaObject() instead More... | |
Private Member Methods inherited from Swagger::SchemaObject | |
checkIntern (bool serialize, bool request, string type, *string format, string path, string method, string name, hash< auto > v, reference< hash< auto >> value) | |
validates a schema object against a value | |
constructor (string name, hash< auto > oh, SwaggerSchema swagger) | |
private constructor; use newSchemaObject() instead More... | |
Private Member Methods inherited from Swagger::SchemaBase | |
check (bool serialize, bool request, string type, *string format, *SchemaObject items, string path, string method, string name, reference< auto > value) | |
validates the value against the schema definition | |
checkArrayParam (bool serialize, bool request, SchemaObject items, string path, string method, string name, reference< softlist > value) | |
validates the value against the schema definition | |
checkIntern (bool serialize, bool request, string type, *string format, string path, string method, string name, binary v, reference value) | |
converts binary values to strings for supported formats | |
checkIntern (bool serialize, bool request, string type, *string format, string path, string method, string name, string v, reference< auto > value) | |
validates string values | |
checkIntern (bool serialize, bool request, string type, *string format, string path, string method, string name, date v, reference value) | |
converts strings to/from date/time values for supported formats | |
auto | getExampleValue (string type, *string format) |
returns an example value for the given type | |
Additional Inherited Members | |
Public Member Methods inherited from Swagger::SchemaObject | |
list< SchemaObject > | allOf () |
See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.3. More... | |
check (bool serialize, bool request, string path, string method, string name, reference value) | |
validates the value against the schema definition | |
string | getQoreExample (reference< hash< RestQoreExampleCodeInfo >> rv, string name, bool decl) |
returns example Qore code for the object | |
Public Member Methods inherited from Swagger::ObjectBase | |
constructor () | |
Constructor. | |
constructor (hash< auto > oh) | |
Constructor. More... | |
constructor (ObjectBase other) | |
copy constructor | |
initialize (hash< auto > oh) | |
Initialize. More... | |
Public Member Methods inherited from Swagger::SchemaBase | |
constructor (string objType, hash< auto > oh) | |
Constructor. More... | |
constructor (SchemaBase other) | |
Copy constructor. | |
Static Private Member Methods inherited from Swagger::SchemaObject | |
static | checkValueType (reference< auto > value, string type, *SchemaObject items, *string loc) |
validates default values | |
Static Private Member Methods inherited from Swagger::SchemaBase | |
static | throwInvalidType (string name, string actual, string expected, auto value) |
throws an SCHEMA-VALIDATION-ERROR exception | |
items schema object for non-body parameters
|
private |
private constructor; use newSchemaObject() instead
name | the name of the object |
oh | deserialized hash from the source schema description describing an object in the schema |
swagger | the REST schema for resolving references |
INVALID-FIELD-FORMAT | field has invalid format |
INVALID-FIELD-TYPE | field has invalid type |
INVALID-FIELD-VALUE | field has invalid value |
INVALID-COLLECTION-FORMAT | invalid collectionFormat value |
INVALID-REFERENCE | cannot resolve reference; unknown attributes in description |
REQUIRED-FIELD-MISSING | required field is missing |
|
static |
returns a SchemaObject for the schema definition; resolves references
name | the name of the object |
oh | deserialized hash from the source schema description describing an object in the schema |
swagger | the REST schema for resolving references |
INVALID-FIELD-FORMAT | field has invalid format |
INVALID-FIELD-TYPE | field has invalid type |
INVALID-FIELD-VALUE | field has invalid value |
INVALID-COLLECTION-FORMAT | invalid collectionFormat value |
INVALID-REFERENCE | cannot resolve reference; unknown attributes in description |
REQUIRED-FIELD-MISSING | required field is missing |
|
static |
throws an "INVALID-FIELD-TYPE"
exception
INVALID-FIELD-TYPE | due to a type error in the call |
*string Swagger::ParameterItemsSchemaObject::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|bar"multi"
: corresponds to multiple parameter instances instead of multiple values for a single instance foo=bar&foo=baz
. This is valid only for parameters in "query"
or "formData"
.Default value is "csv"
.