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

Core.OptionalParameter/DefaultValue: change type to Edm.PrimitiveType #269

Closed ralfhandl closed 1 month ago

ralfhandl commented 2 months ago

Currently the type of Core.OptionalParameter/DefaultValue is Edm.String:

https://github.com/oasis-tcs/odata-vocabularies/blob/42ef2348939e9b4623d1a8aedd80b4c1686d4c6a/vocabularies/Org.OData.Core.V1.xml#L512

Change this to Edm.PrimitiveType to allow specifying a type-compatible default value without relying on type cast from a string value.

ralfhandl commented 1 month ago

TC 2024-08-28: it works as is, has been this way for seven years now, and changing it risks breaking clients if new services use types other than String for their default values.