-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_ERRATA02
-
Fix Version/s: V4.0_ERRATA03
-
Component/s: JSON Format
-
Labels:None
-
Environment:
[Applied]
-
Proposal:
Section 7.1 states that
Values of type enumValue are represented as JSON strings using the
enumerationMember, defined in [OData-ABNF], where available.
Unfortunately it does not state explicitly how the numeric alternative values for enumeration members are to be serialized.
The original intent stated in https://issues.oasis-open.org/browse/ODATA-96 and the referenced revised proposal https://www.oasis-open.org/apps/org/workgroup/odata/download.php/47997/Supporting%20Enumeration%20Types%20in%20OData.docx was to
support the alternate representation of an enumeration value as the
underlying integer value as a string.
with an explicit example for JSON
"color":"32"