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

As a opendatahub api developer i want to show deprecated info metadata to our customers #225

Open
RudiThoeni opened this issue Sep 9, 2021 · 0 comments
Assignees

Comments

@RudiThoeni
Copy link
Member

RudiThoeni commented Sep 9, 2021

Different possibilities

Add to openapi specification, openapi 3 allows to add deprecated attributes to methods and properties
This way Swagger shows it in the output. The information when at example the property is removed could be added as description parameter. It would look like this:
image

deprecated info is not shown in the example value
image

  • standard openapi
  • no api consumer will have a look at the swagger schema ;)

Show in each json Response which fields will be deprecated in future and add also additional information.
At example by adding an object "deprecatedInfo"

  • every consumer sees it immediately in the response
  • non standard solution

Add a Deprecated Endpoint to the api.
This Endpoint shows all info about which methods/properties are deprecated and additional info.
Maybe it could be easily done by parsing the openapi specification and showing it trough an api

  • This solution could stand well in combination with 1
@RudiThoeni RudiThoeni self-assigned this Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants