|
| static ParameterItemsSchemaObject | newSchemaObject (string name, auto error, SwaggerSchema swagger, *string inLoc) |
| | throws an "INVALID-FIELD-TYPE" exception
|
| |
| static ParameterItemsSchemaObject | newSchemaObject (string name, hash< auto > oh, SwaggerSchema swagger, *string inLoc) |
| | returns a SchemaObject for the schema definition; resolves references
|
| |
| static SchemaObject | newSchemaObject (string name, auto error, SwaggerSchema swagger) |
| | throws an "INVALID-FIELD-TYPE" exception
|
| |
| static SchemaObject | newSchemaObject (string name, hash< auto > oh, SwaggerSchema swagger, *bool require_items) |
| | returns a SchemaObject for the schema definition; resolves references
|
| |
| static bool | checkValueType (reference< auto > value, string type) |
| | Checks the value against the type.
|
| |
|
| | constructor (string name, hash< auto > oh, SwaggerSchema swagger, *string inLoc) |
| | private constructor; use newSchemaObject() instead
|
| |
|
| checkIntern (bool serialize, bool request, string type, *string format, string path, string method, string name, hash< auto > v, reference< hash< auto > > value, *bool no_check_others) |
| | validates a schema object against a value
|
| |
| | constructor (string name, hash< auto > oh, SwaggerSchema swagger, *string hash_str, *bool require_items) |
| | private constructor; use newSchemaObject() instead
|
| |
|
AbstractDataProviderType | getDataTypeIntern (string path, bool required=True, *HTTPClient rest) |
| | Returns the data type for the given schema.
|
| |
|
AbstractDataField | getFieldIntern (string path, string name, *string desc, bool required=True, *HTTPClient rest, auto default_value, *string rstr) |
| | Returns a field definition from the Swagger parameter.
|
| |
|
| getSchemaObjectFields (HashDataType type, string path, auto def_body) |
| | Sets fields of a schema object.
|
| |
|
| 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< list< 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< auto > value) |
| | converts dates to/from string or int 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 | getExampleValueWithFormat (string type, *string format, *string fname) |
| | returns an example value for the given type
|
| |
|
| list< SchemaObject > | allOf () |
| | See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.3.
|
| |
|
| check (bool serialize, bool request, string path, string method, string name, reference< auto > value) |
| | validates the value against the schema definition
|
| |
|
AbstractDataField | getField (string name, *string desc, bool required=True, *HTTPClient rest, auto default_value) |
| | Returns a field definition from the Swagger parameter.
|
| |
|
AbstractDataField | getField (string path, string name, *string desc, bool required=True, *HTTPClient rest, auto default_value) |
| | Returns a field definition from the Swagger parameter.
|
| |
|
string | getQoreExample (reference< hash< RestQoreExampleCodeInfo > > rv, string name, bool decl) |
| | returns example Qore code for the object
|
| |
|
| constructor () |
| | Constructor.
|
| |
| | constructor (hash< auto > oh) |
| | Constructor.
|
| |
|
| constructor (ObjectBase other) |
| | copy constructor
|
| |
| | initialize (hash< auto > oh) |
| | Initialize.
|
| |
|
| constructor (SchemaBase other) |
| | Copy constructor.
|
| |
| | constructor (string objType, hash< auto > oh) |
| | Constructor.
|
| |
|
static | checkValueType (reference< auto > value, string type, *SchemaObject items, *string loc) |
| | validates default values
|
| |
|
static *AbstractDataField | getCacheField (reference< hash< string, AbstractDataField > > h, string key) |
| | Returns a field object from the given cache.
|
| |
|
static | throwInvalidType (string name, string actual, string expected, auto value) |
| | throws an SCHEMA-VALIDATION-ERROR exception
|
| |
items schema object for non-body parameters