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

Deprecate example field #1637

Merged
merged 2 commits into from Sep 3, 2020
Merged

Deprecate example field #1637

merged 2 commits into from Sep 3, 2020

Conversation

johanbrandhorst
Copy link
Collaborator

The example field using google.protobuf.Any
was pretty silly and just happened to work because
of how we were using it. It's confusing to users and breaks some tooling,
so it is best deprecated.

This is an unfortunate break from the "each field maps to the openapiv2 schema"
precedent we've maintained so far, but there is
no other good way that I can think of to safely deprecate
this.

Any thoughts @ivucica?

The example field using google.protobuf.Any
was pretty silly and just happened to work because
of how we were using it. It's confusing to users and breaks some tooling,
so it is best deprecated.

This is an unfortunate break from the "each field maps to the openapiv2 schema"
precedent we've maintained so far, but there is
no other good way that I can think of to safely deprecate
this.
@johanbrandhorst johanbrandhorst merged commit 3655adb into master Sep 3, 2020
@johanbrandhorst johanbrandhorst deleted the deprecate-example-field branch September 3, 2020 19:14
Copy link
Collaborator

@ivucica ivucica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I just wish this PR had included generated .swagger.json examples.

@johanbrandhorst
Copy link
Collaborator Author

There is no diff in the swagger examples because the output is exactly the same as before.

@ivucica
Copy link
Collaborator

ivucica commented Sep 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants