… } Primitive Properties Primitive properties of type Edm.PrimitiveType and any of the Edm.Geo* types are represented as JSON References to definitions in the schema. Primitive properties of type Edm.Stream are represented as JSON References to an unfulfillable definition in the schema as they are represented in JSON payloads. All other primitive properties are represented with the following JSON Schema types, formats, and validation keywords: OData Primitive Type JSON Schema Comment Type Format Keywords Edm.Binary OData-specific format string base64url maxlength byteLength maxLength is maximum length of string representation, i.e. 4*ceil(MaxLength/3) byteLength is the maximum length of the binary value in octets Edm.Boolean boolean Edm.Byte integer uint8 OData-specific format Edm.Date string date Swagger format Edm.DateTimeOffset OData-specific keyword string date-time precision Edm.Decimal OData-specific format number, decimal minimum string maximum string is needed for multipleOf IEEE754Compatible mode precision OData-specific keywords scale precision and scale Edm.Double number double Swagger format with extended meaning [,string] string is needed for -INF, INF, and NaN Edm.Duration string duration OData-specific format Edm.Guid string uuid OData-specific format Edm.Int16 OData-specific format integer Edm.Int32 Swagger format integer int32 Edm.Int64 integer, int64 Swagger format string string is needed for IEEE754Compatible mode OData-specific format integer int8
… } Primitive Properties Primitive properties of type Edm.PrimitiveType and any of the Edm.Geo* types are represented as JSON References to definitions in the schema. Primitive properties of type Edm.Stream are represented as JSON References to an unfulfillable definition in the schema as they are represented in JSON payloads. All other primitive properties are represented with the following JSON Schema types, formats, and validation keywords: OData Primitive Type JSON Schema Comment Type Format Keywords Edm.Binary string base64url maxlength byteLength OData-specific format maxLength is maximum length of string representation, i.e. 4*ceil(MaxLength/3) byteLength is the maximum length of the binary value in octets Edm.Boolean boolean Edm.Byte integer uint8 OData-specific format Edm.Date string date Swagger format Edm.DateTimeOffset string date-time precision OData-specific keyword Edm.Decimal number, string decimal minimum maximum multipleOf precision scale OData-specific format string is needed for IEEE754Compatible mode OData-specific keywords precision and scale Edm.Double number [,string] double Swagger format with extended meaning string is needed for -INF, INF, and NaN Edm.Duration string duration OData-specific format Edm.Guid string uuid OData-specific format Edm.Int16 integer OData-specific format Edm.Int32 integer int32 Swagger format Edm.Int64 integer, string int64 Swagger format string is needed for IEEE754Compatible mode integer int8 OData-specific format