-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Fix bug For Github Issues #24226
Fix bug For Github Issues #24226
Conversation
Swagger Validation Report
|
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
LinkedService.json | 2018-06-01(be64441) | 2018-06-01(main) |
Pipeline.json | 2018-06-01(be64441) | 2018-06-01(main) |
LinkedService.json | 2020-12-01(be64441) | 2020-12-01(main) |
Pipeline.json | 2020-12-01(be64441) | 2020-12-01(main) |
️️✔️
Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️🔄
LintDiff inProgress [Detail]
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️
ApiReadinessCheck succeeded [Detail] [Expand]
️️✔️
~[Staging] ServiceAPIReadinessTest succeeded [Detail] [Expand]
Validation passes for ServiceAPIReadinessTest.
️❌
SwaggerAPIView: 0 Errors, 0 Warnings failed [Detail]
️️✔️
CadlAPIView succeeded [Detail] [Expand]
️️✔️
TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️
PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️
CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️
TypeSpec Validation succeeded [Detail] [Expand]
Validation passes for TypeSpec Validation.
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Hi @Jingshu923, this service has enabled Service API Toolset. All spec updates MUST be initiated from service ADO project repo, so that to guarantee it to be the source of truth., please review this pull request if it's intentional or reject it if it's not expected. Normally, all the specification or example changes should start with PR created in ADO. |
Swagger Generation Artifacts
|
Generated ApiView
|
Hi, @Jingshu923 Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com |
...tafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json
Outdated
Show resolved
Hide resolved
Hi @Jingshu923, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review. |
Why are you removing x-ms-enum and turning the properties into simple strings? Especially since the docs state what the valid string values are. |
@JeffreyRichter In our UX, it could support expression, so there are customers ask we support expression in swagger and sdk |
With x-ms-enums, if you set model-as-string to true, then any string can actually be passed/returned and this would work for your dynamic content. I think your enums were already marked this way. The reason why your proposal is breaking is because all SDKs that now have enums due to the way the swagger was, will take the enum types away and this will break any customer code that referred to the enum types. So, I'm encouraging you to leave the swagger the way it was to avoid breaking your customers. |
With x-ms-enums, if you set model-as-string to true, then any string can actually be passed/returned and this would work for your dynamic content. I think your enums were already marked this way. The reason why your proposal is breaking is because all SDKs that now have enums due to the way the swagger was will take the enum types away and this will break any customer code that referred to the enum types. |
@JeffreyRichter I know this will break existing customers using it for get value. but we could not avoid this kind of change. But now customers can set it as string or expression |
This doesn't look right to me. In the SDK link you sent the Query property is of type 'object' - what are customers supposed to do with this? When data comes in over the wire, what would it get deserialized to. If Query were set to some object (any object) that it gets serialized to be sent to the service - how will the service handle this? This design looks very questionable and unusable to me. Maybe we need a design session to design this better? |
Hi @JeffreyRichter, this is the expression feature in ADF that has been widely used across many different properties. Due to the limitation of swagger, we can't use |
We have to think about customers who do not use an SDK at all and we also have to think about customers using SDK languages other than C# (Josh's prototype). I still think this property should be modeled as an expression STRING in the REST API and then customers/SDKs can parse this string however they want (or not at all). Does the service store this as an arbitrary JSON object - whatever the client passes to it? What if the JSON object is 5 megabytes in size? How does the service validate this JSN object? Plus, you're introducing a breaking change to customers and we always try to avoid that. |
Merging, as @JeffreyRichter approved the breaking change |
* Fix Bug For Github Issues * fix * fix
ARM API Information (Control Plane)
Changelog
Add a changelog entry for this PR by answering the following questions:
Contribution checklist (MS Employees Only):
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Otherwise your PR may be subject to ARM review requirements. Complete the following:
Check this box if any of the following apply to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review. Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki. Note that this doesn't apply if you are trying to merge a PR that was previously in the private repository.
Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.
If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Breaking Change Review Checklist
If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.