-
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
api management events schema #15987
api management events schema #15987
Conversation
catch up with upsteam on 02242021
Hi, @KacieKK 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. vsswagger@microsoft.com |
[Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks. |
Swagger pipeline can not start as the pull request has merge conflicts. |
Swagger pipeline can not start as the pull request has merge conflicts. |
Swagger pipeline can not start as the pull request has merge conflicts. |
1 similar comment
Swagger pipeline can not start as the pull request has merge conflicts. |
Swagger pipeline can not start as the pull request has merge conflicts. |
1 similar comment
Swagger pipeline can not start as the pull request has merge conflicts. |
Swagger Validation Report
|
Rule | Message |
---|---|
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Id', for definition: 'KeyVaultCertificateNewVersionCreatedEventData' must follow camelCase style. Example: 'id'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L14 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'VaultName', for definition: 'KeyVaultCertificateNewVersionCreatedEventData' must follow camelCase style. Example: 'vaultName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L18 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectType', for definition: 'KeyVaultCertificateNewVersionCreatedEventData' must follow camelCase style. Example: 'objectType'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L22 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectName', for definition: 'KeyVaultCertificateNewVersionCreatedEventData' must follow camelCase style. Example: 'objectName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L26 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Version', for definition: 'KeyVaultCertificateNewVersionCreatedEventData' must follow camelCase style. Example: 'version'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L30 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'NBF', for definition: 'KeyVaultCertificateNewVersionCreatedEventData' must follow camelCase style. Example: 'nbf'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L34 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'EXP', for definition: 'KeyVaultCertificateNewVersionCreatedEventData' must follow camelCase style. Example: 'exp'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L38 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Id', for definition: 'KeyVaultCertificateNearExpiryEventData' must follow camelCase style. Example: 'id'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L48 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'VaultName', for definition: 'KeyVaultCertificateNearExpiryEventData' must follow camelCase style. Example: 'vaultName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L52 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectType', for definition: 'KeyVaultCertificateNearExpiryEventData' must follow camelCase style. Example: 'objectType'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L56 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectName', for definition: 'KeyVaultCertificateNearExpiryEventData' must follow camelCase style. Example: 'objectName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L60 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Version', for definition: 'KeyVaultCertificateNearExpiryEventData' must follow camelCase style. Example: 'version'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L64 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'NBF', for definition: 'KeyVaultCertificateNearExpiryEventData' must follow camelCase style. Example: 'nbf'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L68 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'EXP', for definition: 'KeyVaultCertificateNearExpiryEventData' must follow camelCase style. Example: 'exp'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L72 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Id', for definition: 'KeyVaultCertificateExpiredEventData' must follow camelCase style. Example: 'id'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L82 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'VaultName', for definition: 'KeyVaultCertificateExpiredEventData' must follow camelCase style. Example: 'vaultName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L86 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectType', for definition: 'KeyVaultCertificateExpiredEventData' must follow camelCase style. Example: 'objectType'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L90 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectName', for definition: 'KeyVaultCertificateExpiredEventData' must follow camelCase style. Example: 'objectName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L94 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Version', for definition: 'KeyVaultCertificateExpiredEventData' must follow camelCase style. Example: 'version'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L98 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'NBF', for definition: 'KeyVaultCertificateExpiredEventData' must follow camelCase style. Example: 'nbf'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L102 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'EXP', for definition: 'KeyVaultCertificateExpiredEventData' must follow camelCase style. Example: 'exp'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L106 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Id', for definition: 'KeyVaultKeyNewVersionCreatedEventData' must follow camelCase style. Example: 'id'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L116 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'VaultName', for definition: 'KeyVaultKeyNewVersionCreatedEventData' must follow camelCase style. Example: 'vaultName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L120 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectType', for definition: 'KeyVaultKeyNewVersionCreatedEventData' must follow camelCase style. Example: 'objectType'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L124 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'ObjectName', for definition: 'KeyVaultKeyNewVersionCreatedEventData' must follow camelCase style. Example: 'objectName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L128 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Version', for definition: 'KeyVaultKeyNewVersionCreatedEventData' must follow camelCase style. Example: 'version'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L132 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'NBF', for definition: 'KeyVaultKeyNewVersionCreatedEventData' must follow camelCase style. Example: 'nbf'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L136 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'EXP', for definition: 'KeyVaultKeyNewVersionCreatedEventData' must follow camelCase style. Example: 'exp'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L140 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'Id', for definition: 'KeyVaultKeyNearExpiryEventData' must follow camelCase style. Example: 'id'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L150 |
R3016 - DefinitionsPropertiesNamesCamelCase |
Property named: 'VaultName', for definition: 'KeyVaultKeyNearExpiryEventData' must follow camelCase style. Example: 'vaultName'. Location: Microsoft.KeyVault/stable/2018-01-01/KeyVault.json#L154 |
️❌
Avocado: 15 Errors, 0 Warnings failed [Detail]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
Cross-Version Breaking Changes succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️
[Staging] SDK Track2 Validation succeeded [Detail]
- The following tags are being changed in this PR
Rule | Message |
---|---|
AutorestCore/Exception |
"readme":"eventgrid/data-plane/readme.md", "tag":"package-2018-01", "details":"Error: Semantic validation failed. There was some errors" |
️️✔️
[Staging] PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
[Staging] SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
[Staging] Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
Swagger Generation Artifacts
|
Hi @KacieKK, Your PR has some issues. Please fix the CI sequentially by following the order of
|
} | ||
}, | ||
"APIUpdatedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIUpdated event.", |
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 noticed that for some events API
is capitalized, and in other cases, it's spell Api
(e.g. APIUpdated
vs ApiReleaseUpdated
) I just want to confirm that the difference in casing between these event is expected.
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.
Also, curious about this - We would likely need to rename this via swagger transforms in .NET. It also seems odd that we have API (in whatever casing) twice in the name of the events.
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.
Yeah, that makes sense but the casing should be consistent, right?
We will have to transform it anyway to use "Api" everywhere if we leave it as "API" in the swagger.
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.
ApiManagement is the name of our service that hosts "API" entities. API is an abbreviation so we normally spell it with all caps.
Renaming "ApiManagementAPI" to "ApiManagementApi" requires an extra rollout train to all our services. We prefer to stay as it is.
specification/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
Outdated
Show resolved
Hide resolved
/azp run |
Commenter does not have sufficient privileges for PR 15987 in repo Azure/azure-rest-api-specs |
...tion/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/examples/apiUpdated.json
Outdated
Show resolved
Hide resolved
So for ApiManagementAPIUpdatedEventData, is it intentional that we have both "Api" and "API" in the name? I'm curious what the second API is meant to indicate. |
I see. Is there a reason the casing is different? I'd expect it to be "Api" in both places. |
ApiManagement is the name of our service that hosts "API" entities. API is an abbreviation so we normally spell it with all caps. |
Aren't there already other changes from this PR that will require another rollout? |
Actually, it looks like the casing has already been updated to "Api" everywhere. |
@JoshLove-msft yes, I already changed it to pascal. are we good to merge? |
Looks like it. @lmazuel can you merge this? |
* add swagger * align * rephrase * resolvemergeconflict * comments * examples * prettier * comments * pascal Co-authored-by: Kacie Kang <jikang@microsoft.com>
"data": { | ||
"resourceUri": "/subscriptions/subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.ApiManagement/service/{your-APIM-instance}/apis/{apiId}/releases/{releaseId}" | ||
}, | ||
"eventType": "Microsoft.ApiManagement.APIReleaseDeleted", |
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.
Just want to check - are the event types still using "API" or were they also updated to "Api" to match the event names?
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.
/cc @KacieKK
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.
My mistake - I see that the event names were updated, but the event descriptions were left in the API casing. Please disregard my question.
* add swagger * align * rephrase * resolvemergeconflict * comments * examples * prettier * comments * pascal Co-authored-by: Kacie Kang <jikang@microsoft.com>
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Changelog
Add a changelog entry for this PR by answering the following questions:
Contribution checklist:
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 label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.
-[ ] 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.
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 any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.