Qore Swagger Module Reference
2.0.9
|
Base used by OtherParameter, HeaderObject and SchemaObject. More...
Public Member Methods | |
private | 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 | |
private | checkArrayParam (bool serialize, bool request, SchemaObject items, string path, string method, string name, reference< softlist< auto >> value) |
validates the value against the schema definition | |
private | 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 | |
private | checkIntern (bool serialize, bool request, string type, *string format, string path, string method, string name, string v, reference< auto > value) |
validates string values | |
constructor (SchemaBase other) | |
Copy constructor. | |
constructor (string objType, hash< auto > oh) | |
Constructor. More... | |
Static Public Member Methods | |
static bool | checkValueType (reference< auto > value, string type) |
Checks the value against the type. More... | |
Private Member Methods | |
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 | |
Static Private Member Methods | |
static | throwInvalidType (string name, string actual, string expected, auto value) |
throws an SCHEMA-VALIDATION-ERROR exception | |
Base used by OtherParameter, HeaderObject and SchemaObject.
|
static |
Checks the value against the type.
Constructor.
objType | the type of object |
oh | deserialized hash from the source schema description |
See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1.