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: Add support for deprecation #4033

Merged
merged 4 commits into from
Apr 20, 2021
Merged

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Apr 2, 2021

fix #3690

This adds support for deprecated field on:

  • Operation: OpenAPI 3 & Swagger
  • Parameters: OpenAPI 3 only
  • Schema: OpenAPI3 only

This can be done by adding the following fielld to any of the entity described above.

deprecated: true

Modelerfour schema change:

# This field is added when entity is deprecated(Empty object for now).
deprecated: {}

# If model is NOT deprecated this field is not present.

@azure-pipelines
Copy link

You may test this build by running autorest --reset and then either:


Add the following CLI flags
Pacakge Flag Description
@autorest/core --version:https://tinyurl.com/yfn72g7e For changes to autorest core.
@autorest/modelerfour --use:https://tinyurl.com/yfgbntxm For changes to modelerfour.

Or with all

autorest --version:https://tinyurl.com/yfn72g7e --use:https://tinyurl.com/yfgbntxm

or use the following in your autorest configuration:
# For changes to autorest core
version: "https://tinyurl.com/yfn72g7e"

# For changes to modelerfour
use-extension:
  "@autorest/modelerfour": "https://tinyurl.com/yfgbntxm"

If this build is good for you, give this comment a thumbs up. (👍) And you should run `autorest --reset` again once you're finished testing to remove it.

@timotheeguerin timotheeguerin added the next minor Tag to add on PR to say they should go in the next minor version label Apr 2, 2021
@azure-pipelines
Copy link

You may test this build by running autorest --reset and then either:


Add the following CLI flags
Pacakge Flag Description
@autorest/core --version:https://tinyurl.com/yfm4htgd For changes to autorest core.
@autorest/modelerfour --use:https://tinyurl.com/yjkf7hcq For changes to modelerfour.

Or with all

autorest --version:https://tinyurl.com/yfm4htgd --use:https://tinyurl.com/yjkf7hcq

or use the following in your autorest configuration:
# For changes to autorest core
version: "https://tinyurl.com/yfm4htgd"

# For changes to modelerfour
use-extension:
  "@autorest/modelerfour": "https://tinyurl.com/yjkf7hcq"

If this build is good for you, give this comment a thumbs up. (👍) And you should run `autorest --reset` again once you're finished testing to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next minor Tag to add on PR to say they should go in the next minor version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecated: true/false
1 participant