-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_ERRATA02
-
Fix Version/s: V4.0_WD01, V4.01_WD01
-
Component/s: CSDL JSON, CSDL XML, Vocabularies
-
Labels:None
-
Environment:
Applied
-
Proposal:
-
Resolution:
JSON Schema "minimum" and "maximum" allow JSON numbers. Shouldn't we rather use Type="Edm.PrimitiveType" to reflect this? Which is of course more generic than "number", but we don't have an abstract type for that yet.
Also JSON Schema has "exclusiveMinimum" and "exclusiveMaximum" to allow open intervals. We could make Minimum and Maximum structured annotations based on the same complex type
<ComplexType Name="Limit">
<Property Name="Value" Type="Edm.PrimitiveType" Nullable="false" /> <!-- or Edm.Number -->
<Property Name="Exclusive" Type="Edm.Boolean" Nullable="false" DefaultValue="false" />
</ComplexType>