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 bug in swagger retrieve. Frozen discriminators only when the discriminator key of property is frozen. #305

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

kairu-ms
Copy link
Collaborator

@kairu-ms kairu-ms commented Nov 14, 2023

The properties of Some discriminators may all read-only. So in create/update command, they will be frozen. But the discriminator key is usually writable in the request. If we drop those frozen discriminators, the discriminator will lose some available values to assign. In this PR, the discriminators only frozen when the discriminator key is frozen.

@kairu-ms kairu-ms self-assigned this Nov 14, 2023
@kairu-ms kairu-ms requested a review from necusjz November 15, 2023 03:03
@kairu-ms kairu-ms changed the title Fix bug in swagger retrieve. Frozen discriminators only when its discriminator key is frozen. Fix bug in swagger retrieve. Frozen discriminators only when the discriminator key of property is frozen. Nov 15, 2023
@kairu-ms kairu-ms merged commit d52e2e3 into Azure:dev Nov 15, 2023
@kairu-ms kairu-ms mentioned this pull request Nov 15, 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.

2 participants