You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We didn't use to require the discriminator property on the base type originally because we didn't have property override but now we do it feels like you should describe that property.
//bad
@discriminator("kind") model Pet {}
// good
@discriminator("kind") model Pet { kind: string }
The text was updated successfully, but these errors were encountered:
Decision create azure-core linting rule that validate discriminator is a union so it would take care of that. And instead investigate issue #2737
markcowl
changed the title
Should @discriminator emit a warning if you don't have the property
Add azure.core linter rule if discriminator is not an open union
Jan 8, 2024
markcowl
changed the title
Add azure.core linter rule if discriminator is not an open union
Should discriminator emit a warning oif property does not exist
Jan 8, 2024
Could kinda solve this issue too #2583
We didn't use to require the discriminator property on the base type originally because we didn't have property override but now we do it feels like you should describe that property.
The text was updated successfully, but these errors were encountered: