Qore Swagger Module Reference
2.0.8
|
items schema object for non-body parameters More...
Static Public Member Methods | |
static ParameterItemsSchemaObject | newSchemaObject (string name, auto error, SwaggerSchema swagger) |
throws an "INVALID-FIELD-TYPE" exception More... | |
static ParameterItemsSchemaObject | newSchemaObject (string name, hash< auto > oh, SwaggerSchema swagger) |
returns a SchemaObject for the schema definition; resolves references More... | |
Static Public Member Methods inherited from Swagger::SchemaObject | |
static SchemaObject | newSchemaObject (string name, auto error, SwaggerSchema swagger) |
throws an "INVALID-FIELD-TYPE" exception More... | |
static SchemaObject | newSchemaObject (string name, hash< auto > oh, SwaggerSchema swagger) |
returns a SchemaObject for the schema definition; resolves references 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, *string hash_str) | |
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< auto >> 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, date v, reference value) | |
converts strings to/from date/time values 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 | |
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< auto > 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 (SchemaBase other) | |
Copy constructor. | |
constructor (string objType, hash< auto > oh) | |
Constructor. More... | |
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 |
throws an "INVALID-FIELD-TYPE"
exception
INVALID-FIELD-TYPE | due to a type error in the call |
|
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 |
*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"
.