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 models to autorust's reserved words #1393

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

demoray
Copy link
Contributor

@demoray demoray commented Sep 18, 2023

Because we use models heavily throughout to describe where the generated structs are stored, services that use models as a identifier name will cause issues.

By adding models to the pre-existing is_keyword and using a something that doesn't check is_keyword for when we actually want models, we can generate code for services that use the keyword models.

Fixes #1382 (once the services are re-generated after this PR is merged).

Because we use `models` heavily throughout to describe where the
generated structs are stored, services that use `models` as a identifier
name will cause issues.

By adding `models` to the pre-existing `is_keyword` and using a
something that doesn't check `is_keyword` for when we _actually_ want
`models`, we can generate code for services that use the keyword
`models`.

Fixes Azure#1382
Copy link
Member

@cataggar cataggar left a comment

Choose a reason for hiding this comment

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

perfect

@demoray demoray merged commit 5a386a0 into Azure:main Sep 18, 2023
19 checks passed
@demoray demoray deleted the add-models-to-reserved-words-list branch September 18, 2023 14:33
demoray pushed a commit to demoray/azure-sdk-for-rust that referenced this pull request Sep 18, 2023
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.

Missing latest package-2023-05 api version for CognitiveServices
2 participants