SwaggerDataProviderBase.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace SwaggerDataProvider {
class SwaggerDataProviderBase : public AbstractDataProvider {
public:
protected:
hash<DataProviderInfo> getStaticInfoImpl();
public:
protected:
addFieldsFromParameters(HashDataType rv, hash<string, AbstractParameterObject> parameters, reference<bool> required);
public:
protected:
AbstractDataField getFieldFromSchema(string name, *string desc, SchemaObject schema, bool required = True);
public:
protected:
AbstractDataProviderType getSchemaDataType(SchemaObject schema, bool required = True);
public:
protected:
AbstractDataField getFieldFromParameter(string name, string type, *SchemaObject arrayItems, *string desc, bool required);
public:
protected:
AbstractDataProviderType getType(string typestr, *SchemaObject arrayItems, bool required = True);
public:
protected:
AbstractDataField getFieldForHeaders(string name, hash<auto> headers);
public:
};
};
SwaggerDataProvider::SwaggerDataProviderBase
The Swagger data provider base class.
Definition: SwaggerDataProviderBase.qc.dox.h:28
SwaggerDataProvider::SwaggerDataProviderBase::getFieldForHeaders
AbstractDataField getFieldForHeaders(string name, hash< auto > headers)
Returns a field of header fields.
SwaggerDataProvider::SwaggerDataProviderBase::getType
AbstractDataProviderType getType(string typestr, *SchemaObject arrayItems, bool required=True)
Returns the data type corresponding to the values.
SwaggerDataProvider::SwaggerDataProviderBase::getFieldFromParameter
AbstractDataField getFieldFromParameter(string name, string type, *SchemaObject arrayItems, *string desc, bool required)
Returns a field from a Swagger parameter.
SwaggerDataProvider::SwaggerDataProviderBase::getSchemaDataType
AbstractDataProviderType getSchemaDataType(SchemaObject schema, bool required=True)
Returns the data type for the given schema.
SwaggerDataProvider::SwaggerDataProviderBase::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
SwaggerDataProvider::SwaggerDataProviderBase::getFieldFromSchema
AbstractDataField getFieldFromSchema(string name, *string desc, SchemaObject schema, bool required=True)
Returns a field definition from the Swagger parameter.
SwaggerDataProvider::SwaggerDataProviderBase::addFieldsFromParameters
addFieldsFromParameters(HashDataType rv, hash< string, AbstractParameterObject > parameters, reference< bool > required)
Returns a field definition from Swagger parameters.
True
const True
type
string type(auto arg)
SwaggerDataProvider
Qore SwaggerDataProvider module definition.
Definition: SwaggerDataProvider.qc.dox.h:26