Qore SwaggerDataProvider Module Reference 1.3
Loading...
Searching...
No Matches

Qore SwaggerDataProvider module definition

Introduction to the SwaggerDataProvider Module

The SwaggerDataProvider module provides a data provider API for Swagger / Open API REST APIs. The SwaggerDataProvider class allows for introspecting a Swagger / Open API schema, while the SwaggerRequestDataProvider class supports the data provider request-reply API for communication with REST servers.

Swagger / Open API schemas can be introspected with the following format:

  • REST operation path: uri_path/HTTP_method
    • ex: pet/PUT
    • results in a SwaggerRequestDataProvider object where the request and response messages can be queried and requests can be sent to the server

The following classes are provided by this module:

Release Notes

SwaggerDataProvider v1.3

  • implemented the lax_parsing option to try to parse invalid Swagger schemas (issue 4741)

SwaggerDataProvider v1.2.3

  • fixed a bug where HTTP method names were not accepted as wildcard values in URI paths (issue 4598)
  • fixed a bug setting the datas provider name in Swagger schemas provided by files (issue 4587)

SwaggerDataProvider v1.2.2

  • fixed a bug where data providers could return local names as paths with "/" characters in them, breaking some clients traversing the data provider hierarchy (issue 4555)

SwaggerDataProvider v1.2.1

  • fixed a bug where array types failed due to missing item definitions (issue 4526)
  • fixed a bug where object types in Swagger schemas could be converted directly to object types in Qore instead of hash (issue 4520)

SwaggerDataProvider v1.2

SwaggerDataProvider v1.1.1

SwaggerDataProvider v1.1

  • fixed a bug where requests messages were not validated and processed correctly (issue 4369)
  • implemented support for enum types (issue 4368)

SwaggerDataProvider v1.0.4

  • fixed a bug where recursive definitions in a Swagger schema resulted in runtime errors using the schema (issue 4351)

SwaggerDataProvider v1.0.3

SwaggerDataProvider v1.0.2

SwaggerDataProvider v1.0.1

  • fixed support for requests that do not require a request hash (issue 3784)

SwaggerDataProvider v1.0

  • initial release of the module