71 AbstractDataField
getFieldFromParameter(
string path,
string name,
string type, *
string format, *SchemaObject arrayItems, *
string desc,
bool required, *list<auto> allowed_values);
77 AbstractDataProviderType
getType(
string path,
string typestr, *
string format, *SchemaObject arrayItems,
bool required = True);
90const RecursiveKey =
"__swagger_dp_rec_key$$";
92class RecursiveFieldHelper {
96 *hash<auto> tld = get_thread_data(RecursiveKey);
104 constructor(
object obj,
string ptype,
string name);
107 *QoreDataField get();
110 QoreDataField set(QoreDataField new_field);
114class RecursiveTypeHelper {
120 *AbstractDataProviderType t;
124 constructor(
object obj,
string hash_str);
127 *AbstractDataProviderType get();
130 AbstractDataProviderType set(AbstractDataProviderType new_type);
134class RecursiveSearchHelper {
The Swagger data provider base class.
Definition: SwaggerDataProviderBase.qc.dox.h:28
AbstractDataProviderType getType(string path, string typestr, *string format, *SchemaObject arrayItems, bool required=True)
Returns the data type corresponding to the values.
constructor()
Creates the object.
AbstractDataField getFieldForHeaders(string name, hash< auto > headers)
Returns a field of header fields.
AbstractDataProviderType getSchemaDataType(string path, SchemaObject schema, bool required=True)
Returns the data type for the given schema.
AbstractDataField getFieldFromSchemaIntern(string path, string name, *string desc, SchemaObject schema, bool required=True)
Returns a field definition from the Swagger parameter.
AbstractDataField getFieldFromParameter(string path, string name, string type, *string format, *SchemaObject arrayItems, *string desc, bool required, *list< auto > allowed_values)
Returns a field from a Swagger parameter.
AbstractDataField getFieldFromSchema(string name, *string desc, SchemaObject schema, bool required=True)
Returns a field definition from the Swagger parameter.
constructor(RestClient::RestClient rest)
Creates the object.
addFieldsFromParameters(HashDataType rv, hash< string, AbstractParameterObject > parameters, reference< bool > required)
Returns a field definition from Swagger parameters.
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
The Swagger data provider common base class.
Definition: SwaggerDataProviderCommon.qc.dox.h:28
SwaggerSchema schema
The Swagger schema.
Definition: SwaggerDataProviderCommon.qc.dox.h:33
*RestClient::RestClient rest
The REST client object for API calls.
Definition: SwaggerDataProviderCommon.qc.dox.h:36
auto get_thread_data(string key)
Qore SwaggerDataProvider module definition.
Definition: SwaggerDataProvider.qc.dox.h:26