-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add new Cdn Preview API version: 2025-01-01-preview #32875
base: main
Are you sure you want to change the base?
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
|
Generated ApiView
|
API change check APIView has identified API level changes in this PR and created following API reviews. |
To the ARM reviewer: Swagger LintDiff failures are preexisting and not occurring on the new lines added to specification (please see 7c8d3ba#diff-87b2e146b7dea7119eb43ea9e0c81c526f6ef013c49e12bfee96a9fd4b133810 new spec added). Please add LintDiff suppression label. |
To the ARM reviewer: ModelValidation errors also don't seem related to new lines added in specification, but reviewer may be able to understand the errors better. Also requesting ModelValidation suppression lablel |
To the ARM Reviewer: The SDK azure-sdk-for-net failures say |
The first commit needs to be an exact copy of the previous API version. All new changes should only be added in the subsequent commits. |
azp /run |
7c8d3ba
to
f2f5448
Compare
@razvanbadea-msft I split the commits so that the new first commit |
i asked about further to see if it is something related to the linter rule itself |
] | ||
}, | ||
"azureDnsZone": { | ||
"id": "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this bug in your example (missing value for id
) is causing ModelValidation to crash:
ErrorMessage:Cannot read properties of null (reading 'id')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikeharder Thanks for taking a look! I went through and corrected all the 2025-01-01-preview/examples/AFDCustomDomains_*.json examples (commit 87f1a7c652
. The same ModelValidation error is still showing up though. I checked over the rest of 2025-01-01-preview/examples for "id": ""
, but didn't get more hits. Any ideas what else could be causing the error?
6a95465
to
87f1a7c
Compare
We prefer to leave the property as "type", since it is a subproperty of "authentication". Renaming it to "authenticationType" would be redundant. Example below
|
…-01-preview' for new preview API version.
…24-06-01-preview' version to '2025-01-01-preview'
87f1a7c
to
b586748
Compare
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5, | ||
"authentication": { | ||
"type": "SystemAssignedIdentity", | ||
"userAssignedIdentity": null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the next example bug causing ModelValidation to crash.
For the failures showing up here - https://github.com/Azure/azure-rest-api-specs/pull/32875/checks?check_run_id=38208677412 please add suppressions using https://github.com/Azure/autorest/blob/main/docs/generate/suppress-warnings.md |
ARM (Control Plane) API Specification Update Pull Request
Tip
Overwhelmed by all this guidance? See the
Getting help
section at the bottom of this PR description.PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.
Purpose of this PR
What's the purpose of this PR? Check the specific option that applies. This is mandatory!
Azure CDN is adding new preview API version to support new feature: managed identity authentication for origins. This change is necessary for public preview.
The same change was reviewed in private repo: https://github.com/Azure/azure-rest-api-specs-pr/pull/21266
Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.
Additional information
Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the
Generated ApiView
comment added to this PR. You can use ApiView to show API versions diff.Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.
Getting help
Purpose of this PR
andDue diligence checklist
.write access
per aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositoriesNext Steps to Merge
comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.and https://aka.ms/ci-fix.
queued
state, please add a comment with contents/azp run
.This should result in a new comment denoting a
PR validation pipeline
has started and the checks should be updated after few minutes.