-
Notifications
You must be signed in to change notification settings - Fork 264
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
multiple API versions #563
Comments
For analysis, here are all input files for every tag: |
They shouldn't be doing that. OpenAPI Hub creates a complete copy to avoid cases where someone makes an update to in-development api-versions and inadvertently breaks compat with older versions. @mikekistler should we log a bug against Insights for doing that and even explicitly call out not doing that? For a large number of services and service versions I've reviewed, I've never seen this. Hopefully it's not too prevalent. |
I think we should clearly document what is allowed/recommended, and to my knowledge we currently do not. We could certainly open an issue asking them to change it, but without clear guidance I don't think we could call it a "bug". |
Should we bring this up at the next REST API meeting? From my experience, oversharing swaggers like this leads to eventual problems. I've seen it both for Key Vault / Managed HSM and Cognitive Language pillar services (the latter has already stopped sharing, and we're exploring the latter). |
I've added this to the agenda for the next REST API Stewardship meeting. |
I made the assumption that each
Tag
in a spec readme would be for a unique version. I'm not sure that is true. I'm beginning to think that it is not.Using
specification\applicationinsights\resource-manager\readme.md
as an example since I was looking into Azure/azure-rest-api-specs#17215. It defines thisTag
:AutoRust picks
2020-02-02
as the API from the `components_API.json file.azure-sdk-for-rust/services/mgmt/applicationinsights/src/package_2020_02_02/mod.rs
Line 4 in c10d00a
From this code:
azure-sdk-for-rust/services/autorust/codegen/src/spec.rs
Lines 110 to 120 in c10d00a
The assumption was that all of the operations would be available in that new API and define the tag like this show that you are just introducing new operations in the
components_API.json
, but nothing else is changing. I'm doubting this is true.If it isn't true, isn't it weird to have an SDK generated from a tag that is using two different API versions? If you look at the latest
Tag
, it is mixing 7 different API versions and 3 of them are marked preview.I don't understand why this is being done this way. I'll try to gather some more examples.
The text was updated successfully, but these errors were encountered: