You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on OpenAPI-3 support (#69) building on top of the code of this repo. I've got it working now. My code is not completely cleaned up and I can't have possibly tested all API use cases, but I would be happy make it into a proper PR if the maintainers are also willing to support it here.
support specifying format or pattern of string type (and adds the appropriate validator for free)
each view with different accept or content_type or renderer can make a separate item under the responses.content or requestBody.content as required by the spec.
Hi!
I've been working on OpenAPI-3 support (#69) building on top of the code of this repo. I've got it working now. My code is not completely cleaned up and I can't have possibly tested all API use cases, but I would be happy make it into a proper PR if the maintainers are also willing to support it here.
The changes for the current code are as follows:
master...fmigneault:oneOf-objects
Plus the following objects I added in my repo to override/expand the existing converters:
https://github.com/crim-ca/weaver/blob/job-io-extras/weaver/wps_restapi/colander_extras.py
I'm using the following spec (quite big):
https://github.com/crim-ca/weaver/blob/job-io-extras/weaver/wps_restapi/swagger_definitions.py
I'm getting the results/features like follows :
oneOf,allOf,anyOfsupported (withdeserialize()validation) (oneOf, allOf, anyOf, not - keyword for objects and arrays #95)formatorpatternof string type (and adds the appropriate validator for free)acceptorcontent_typeorrenderercan make a separate item under theresponses.contentorrequestBody.contentas required by the spec.other things:
defaultauto-replaced when using schema deserialization and other nice-to-have schema definitionstitlewhen the auto-one is not so greatgenerateand/or directly set inCorniceSwaggerclass.Let me know of your thoughts and if we could improve it even more.