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

feature(core/apiserver): use oneof for google.Protobuf.Any handling #30

Open
fdymylja opened this issue Jun 21, 2021 · 0 comments
Open

Comments

@fdymylja
Copy link
Contributor

fdymylja commented Jun 21, 2021

https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/

Tragically, any is represented as a bytes value in the openAPI schema, but it will be parsed as a concrete json object in the protojson implementation, for a better user experience, we should use oneOf to define what that field in the schema can look like.

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

1 participant