Uh oh!
There was an error while loading. Please reload this page.
[python-experimental] Support schema property which has $ref to 'oneOf' schema - #6262
Conversation
@spacether , I don't think we currently have any sample or unit test that exercises the following use case: a schema property is referencing a |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@sebastien-rosset please take a look at this branch which I made from this PR. My branch's update makes it so we can instantiate Drawings with oneOf class inputs for Shape and Triangle types. |
sebastien-rosset
commented
May 12, 2020
That's awesome, let me check. |
sebastien-rosset
commented
May 12, 2020
I have tested your proposed changes, this seems to work, which is great. |
Uh oh!
There was an error while loading. Please reload this page.
sebastien-rosset
commented
May 12, 2020
There is a dependency on #6121 being merged before we can handle the 'null' type in oneOf. If we have a |
spacether
left a comment
There was a problem hiding this comment.
Thanks for the PR. Looks good to me.
This PR adds support for use cases when a schema property is referencing another schema which is itself a oneOf.
PR checklist
./bin/(or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh,./bin/openapi3/{LANG}-petstore.shif updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).master,4.3.x,5.0.x. Default:master.