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

Fix x-ms-identifiers rule to support inner properties #1744

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

Conversation

AlitzelMendez
Copy link
Member

issue: #1742

@azure-sdk
Copy link
Collaborator

All changed packages have been documented.

  • @azure-tools/typespec-azure-resource-manager
Show changes

@azure-tools/typespec-azure-resource-manager - fix ✏️

Fix the x-ms-identifier rule. The x-ms-identifier supports indexing into inner properties, but the linter does not support that and reports a warning.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

.expect(
`
model Pet {
@OpenAPI.extension("x-ms-identifiers", ["food/brand/name"])
Copy link
Member

Choose a reason for hiding this comment

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

The doc linked in the issue mentioned that those should start with / in the example.

Not really sure if that's accurate but maybe we should support it or confirm there isn't use case of one or the other

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.

[Bug] missing-x-ms-identifiers linter rule does not handle property from an inner property
3 participants