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

add prop decorator parsing for x-ms-identifiers and x-ms-secret #450

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

AllyW
Copy link
Member

@AllyW AllyW commented Feb 8, 2025

The result of getExtensions from model needed to be applied

@AllyW AllyW changed the title add prop identifier add prop decorator parsing for x-ms-identifiers and x-ms-secret Feb 13, 2025
Comment on lines -795 to -797
if (item.type === "object" && !array.identifiers && getProperty(payloadModel.indexer.value as Model, "id") && getProperty(payloadModel.indexer.value as Model, "name")) {
array.identifiers = ["name"];
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should keep this logic for array of objects without identifiers

@AllyW AllyW merged commit 0f10cd1 into Azure:dev Feb 13, 2025
3 checks passed
@kairu-ms kairu-ms mentioned this pull request Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants