oasis-tcs / odata-vocabularies

OASIS OData TC: Standard vocabularies for annotating OData services
https://oasis-tcs.github.io/odata-vocabularies/
Other
58 stars 45 forks source link

Why is Alias in AlternateKeys not nullable? #259

Closed ralfhandl closed 3 months ago

ralfhandl commented 4 months ago

A key alias is only required if a key property is nested within a complex or navigation property, and explicitly forbidden otherwise

An alias MUST NOT be defined if the key property is a primitive property of the entity type itself.

Initially the Alias of an alternate key was optional (nullable), and it seems to be an accident that this was changed to non-nullable with PR #19:

https://github.com/oasis-tcs/odata-vocabularies/blob/25b39539374846d482e669594ca4d9b98b5b73ca/vocabularies/Org.OData.Core.V1.xml#L491-L493

Proposal

Make Alias nullable.

ralfhandl commented 3 months ago

TC 2024-06-19: Alias should be nullable, Ralf to create a PR