Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi schema for tagged unions is wrong #16

Open
adamse opened this issue Jul 1, 2020 · 2 comments
Open

openapi schema for tagged unions is wrong #16

adamse opened this issue Jul 1, 2020 · 2 comments
Assignees

Comments

@adamse
Copy link
Collaborator

adamse commented Jul 1, 2020

What the openapi schema says: an object with a field tag that acts as the descriminator:

{ "tag": "variant-name"
, ...
}

How it is actually encoded: an object with 1 field which is the discriminator:

{ "variant-name": { ... } }
@pepeiborra
Copy link
Owner

the openapi module became out of sync with the implementation

@adamse
Copy link
Collaborator Author

adamse commented Jul 1, 2020

i'm looking at solving it, just have to figure out a suitable openapi encoding of what we actually get.

@adamse adamse self-assigned this Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants