AbstractSwaggerParameterObject specialization for "body" parameters.
More...
#include <Swagger.qm.dox.h>
|
|
void | check (reference< auto > value, string name, string method, string path, bool serialize, bool request) |
| | verifies the parameter in an actual REST API call
|
| |
| void | constructor (hash< auto > oh, SwaggerSchema swagger) |
| | Constructor.
|
| |
| auto | getExampleValue (soft< hash< string, bool > > emap, soft< string > fname) |
| |
|
string | getQoreExample (reference< hash< RestQoreExampleCodeInfo > > rv) |
| | generates Qore example code for a REST API call
|
| |
|
soft< RestSchemaValidator::AbstractSchemaObject > | getSchema () |
| | Returns the schema for this parameter.
|
| |
|
abstract void | check (reference value, string name, string method, string path, bool serialize, bool request) |
| | verifies the parameter in an actual REST API call
|
| |
| void | constructor (hash< auto > oh, soft< int > opt_flags) |
| | Constructor.
|
| |
|
auto | getDefaultValue () |
| | returns the default value of the parameter (default: NOTHING)
|
| |
|
abstract soft< RestSchemaValidator::AbstractSchemaObject > | getSchema () |
| | Returns the schema for this parameter, if any.
|
| |
|
void | constructor () |
| | Constructor.
|
| |
| void | constructor (hash< auto > oh) |
| | Constructor.
|
| |
|
void | constructor (ObjectBase other) |
| | Copy constructor.
|
| |
|
|
SchemaObject | schema |
| | Required. The schema defining the type used for the body parameter.
|
| |
AbstractSwaggerParameterObject specialization for "body" parameters.
◆ constructor()
| void Swagger::BodyParameter::constructor |
( |
hash< auto > |
oh, |
|
|
SwaggerSchema |
swagger |
|
) |
| |
Constructor.
- Parameters
-
| oh | deserialized hash from the source schema description describing a body parameter |
| swagger | the REST schema for resolving references |
- Exceptions
-
| INVALID-FIELD-TYPE | field has invalid type |
| REQUIRED-FIELD-MISSING | required field is missing |
◆ getExampleValue()
| auto Swagger::BodyParameter::getExampleValue |
( |
soft< hash< string, bool > > |
emap, |
|
|
soft< string > |
fname |
|
) |
| |
- Parameters
-
| emap | a hash to ensure that examples are only produced once |
| fname | any field context for the value |