Qore Swagger Module Reference
1.1.0
|
Base used by OtherParameter, HeaderObject and SchemaObject. More...
Public Member Methods | |
constructor (string objType, hash oh) | |
Constructor. More... | |
constructor (SchemaBase other) | |
Copy constructor. | |
Private Member Methods | |
check (bool serialize, bool request, string type, *string format, *SchemaObject items, string path, string method, string name, reference 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 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 | |
Static Private Member Methods | |
static | throwInvalidType (string name, string actual, string expected) |
throws an SCHEMA-VALIDATION-ERROR exception | |
Base used by OtherParameter, HeaderObject and SchemaObject.
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.