Example : nullable collection-valued primitive property "Dates":{ "type":"array", "items":{ "type":["string","null"], "format":"date" } }, Navigation Properties Navigation properties are represented similar to complex properties so that a standard OpenAPI Specification validator can validate the expanded representation of the navigation property. Example : collection-valued navigation property Products "Products":{ "items":{ "$ref":"#/definitions/ODataDemo.Product" } } Example : single-valued navigation property Category "Category":{ "$ref":"#/definitions/ODataDemo.Category" } Definitions for Enumeration Types An enumeration type is represented as a of type string containing the OpenAPI Specification enum keyword. Its is an array that contains a string with the member name for each enumeration member. It optionally can contain the field description, whose value is the value of the unqualified annotation Core.Description of the enumeration type. Example : enumeration type "org.example.ShippingMethod":{ "type":"string", "enum":[ "FirstClass", "TwoDay", "Overnight" ] } Definitions for Type Definitions A type definition is represented as a describing the allowed values of the type definition using the same rules as described for primitive properties in section 4.7.1.1. It optionally can contain the field description, whose value is the value of the unqualified annotation Core.Description of the type definition.
Example : nullable collection-valued primitive property "Dates":{ "type":"array", "items":{ "type":["string","null"], "format":"date" } }, Navigation Properties Navigation properties are represented similar to complex properties so that a standard OpenAPI Specification validator can validate the expanded representation of the navigation property. Example : collection-valued navigation property Products "Products":{ "items":{ "$ref":"#/definitions/ODataDemo.Product" } } Example : single-valued navigation property Category "Category":{ "$ref":"#/definitions/ODataDemo.Category" } Definitions for Enumeration Types An enumeration type is represented as a of type string containing the OpenAPI Specification enum keyword. Its is an array that contains a string with the member name for each enumeration member. It optionally can contain the field description, whose value is the value of the unqualified annotation Core.Description of the enumeration type. Example : enumeration type "org.example.ShippingMethod":{ "type":"string", "enum":[ "FirstClass", "TwoDay", "Overnight" ] } Definitions for Type Definitions A type definition is represented as a describing the allowed values of the type definition using the same rules as described for primitive properties in section 4.7.1.1. It optionally can contain the field description, whose value is the value of the unqualified annotation Core.Description of the type definition.