Repository navigation
feat: add OpenAPI registration module - #45
Conversation
uniqueg
left a comment
There was a problem hiding this comment.
This looks quite good - thanks a lot! Please add the suggested changes and then start implementing the tests. :-)
|
Oh, and please take care of the |
Rustructured InvalidSpecification error, extended OpenAPIConfig class documaentation, flake8 linting consistency, other minor fixes (#40)
|
I've incorporated the sugggested changes, let me know if they meet the requirements. |
uniqueg
left a comment
There was a problem hiding this comment.
Looks good. Just one suggestion to add validation code for the OpenAPIConfig class constructor. The rest are just hints how you can write tests for the code.
|
@uniqueg For the validation code, should I just check the consistency of the types of the inputs with those of the class attributes? Since the validity of their format is checked in |
|
@stikos I have been working a lot on this (there was a lot to consider still, especially with using |
Allow registering one or more OpenAPI 2.x and 3.x YAML specification files with a Connexion app. Some options are available to easily modify specifications, specifically for adding security definitions and the `x-swagger-router-controller` field. Additional config options can be passed through to Connexion. Co-authored-by: Alex Kanitz <[email protected]>
Description
Creation of a module for OpenAPI endpoints registration with the option of multiple configuration files usage
Fixes #40
Type of change
Please delete options that are not relevant.
Checklist: