Skip to content
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

[EG] union updates #32560

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

[EG] union updates #32560

wants to merge 4 commits into from

Conversation

l0lawrence
Copy link
Member

@l0lawrence l0lawrence commented Feb 11, 2025

Checked all union types in system event typespec and ensured accurate key/value pairing capitalization. Found a missing value under acs

Copy link

openapi-pipeline-app bot commented Feb 11, 2025

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ This is the public specs repo main branch which is not intended for iterative development.
    You must acknowledge that you understand that after this PR is merged, you won't be able to stop your changes from being published to Azure customers.
    If this is what you intend, add PublishToCustomers label to your PR.
    Otherwise, retarget this PR onto a feature branch, i.e. with prefix release- (see aka.ms/azsdk/api-versions#release--branches).
  • ❌ This PR has at least one breaking change (label: BreakingChangeReviewRequired).
    To unblock this PR, follow the process at aka.ms/brch.
  • ❌ The required check named TypeSpec Validation has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide

Copy link

openapi-pipeline-app bot commented Feb 11, 2025

@@ -1114,6 +1114,10 @@ union CommunicationIdentifierModelKind {
/** Microsoft Teams User */
"microsoftTeamsUser",

/** Microsoft Teams Application */
"microsoftTeamsApp",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

Microsoft.ApiCenter

@l0lawrence l0lawrence marked this pull request as ready for review February 13, 2025 16:24

/** Delivered */
"delivered",
Delivered: "delivered",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we add the keys here but remove in the other model?

Copy link
Member Author

@l0lawrence l0lawrence Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the keys here b/c in this union I got twisted around on the swagger def here:

. The on the wire enum has uppercase, but values in x-ms-enum has lowercase

@@ -867,10 +867,10 @@ union AcsRouterLabelOperator {
/** Router Worker Selector State */
union AcsRouterWorkerSelectorState {
/** Router Worker Selector State Active */
Active: "active",
"active",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"active",
active: "active",

Should we be explicit? Sure it's redondant, but cleaner?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I can do the same to all the unions


/** Router Worker Selector State Expired */
Expired: "expired",
expired: "expired",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can go back to being capital keys


string,
}

/** Router Worker Selector State */
union AcsRouterWorkerSelectorState {
/** Router Worker Selector State Active */
Active: "active",
active: "active",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is capitalized by JS in GA

Copy link
Contributor

Hi, @l0lawrence. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove no-recent-activity label.

@microsoft-github-policy-service microsoft-github-policy-service bot added the no-recent-activity There has been no recent activity on this issue. label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane Event Grid no-recent-activity There has been no recent activity on this issue. TypeSpec Authored with TypeSpec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants