Open bingosummer opened 2 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @adrianhall, @KedarJoshi.
Author: | bingosummer |
---|---|
Assignees: | - |
Labels: | `API Management`, `Service Attention`, `needs-triage` |
Milestone: | - |
Nothing to do with API Management here. API Management itself does nothing with the deprecated flag.
I'd hazard a guess it's about autorest more than anything.
The user doesn't get any warning that a property is deprecated. OpenAPI 2.0 does not allow you to mark a field as deprecated - only an API. OpenAPI 3.0 adds deprecated support to the field, but azure-rest-api-specs doesn't use 3.0 yet. I believe the x-deprecated property marks the property / method as deprecated in the SDKs.
I want to mark the property
foo
deprecated. For example, ""I know we can set
"deprecated": true
for a path. But for the schema object, I didn't see the propertydeprecated
in the official OpenAPI 2.0 doc https://spec.openapis.org/oas/v2.0#schema-object.https://github.com/Azure/autorest/blob/main/Samples/test/deprecated/deprecated.yaml mentions "x-deprecated". But I didn't find any docs about it or any examples in azure-rest-api-specs.
Question: