[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-843) Nullable as anyOf or as OData-specific keyword
Ralf Handl created ODATA-843: -------------------------------- Summary: Nullable as anyOf or as OData-specific keyword Key: ODATA-843 URL: https://issues.oasis-open.org/browse/ODATA-843 Project: OASIS Open Data Protocol (OData) TC Issue Type: Bug Components: OData JSON CSDL Affects Versions: V4.0_WD01 Reporter: Ralf Handl Fix For: V4.0_WD01 JSON Schema treats null as a separate data type, requiring an "anyOf" construct for nullable properties: "Supplier":{ "anyOf":[{ "$ref":"#/definitions/ODataDemo.Supplier" }, { "type":"null" } ], If we accept that OData-unaware JSON Schema validators will complain wrongly if they encounter a null value, we could shorten this to "Supplier":{ "$ref":"#/definitions/ODataDemo.Supplier", "nullable":true } This would increase readability for humans and OData-aware machines and significantly reduce the optical size of the JSON CSDL due to the reduced number of line breaks added by pretty printers and JSON Viewers. The actual byte size reduction isn't significant. -- This message was sent by Atlassian JIRA (v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]