EDM Type JSON Schema Comment Type Format Keywords Edm.Binary string base64url maxlength OData-specific format maxLength is maximum byteLength length of string representation, i.e. 4*ceil(MaxLength/3) byteLength is the maximum length of the binary in octets Edm.Boolean boolean Edm.Byte OData-specific format integer uint8 Edm.Date Swagger format string date Edm.DateTimeOffset string date-time precision OData-specific keyword Edm.Decimal number, decimal minimum OData-specific format string maximum string is needed for multipleOf IEEE754Compatible mode precision OData-specific keywords scale precision and scale Edm.Double Swagger format with double extended meaning string is needed for -INF, INF, and NaN Edm.Duration OData-specific format string duration Edm.Guid OData-specific format string uuid Edm.Int16 integer int16 OData-specific format integer int32 Swagger format Edm.Int64 Swagger format integer, int64 string string is needed for IEEE754Compatible mode Edm.SByte OData-specific format integer int8 Edm.Single single OData-specific format string is needed for -INF, INF, and NaN Edm.String Sequence of UTF-8 string maxlength characters Edm.TimeOfDay string time precision OData-specific format OData-specific keyword Properties of type Edm.Decimal and Edm.Int64 are represented as JSON strings if the format option IEEE754Compatible=true is specified, so they have to be declared with both number and string.
EDM 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 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 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 int16 OData-specific format integer int32 Swagger format Edm.Int64 integer, string int64 Swagger format string is needed for IEEE754Compatible mode Edm.SByte integer int8 OData-specific format Edm.Single single OData-specific format string is needed for -INF, INF, and NaN Edm.String string maxlength Sequence of UTF-8 characters Edm.TimeOfDay string time precision OData-specific format OData-specific keyword Properties of type Edm.Decimal and Edm.Int64 are represented as JSON strings if the format option IEEE754Compatible=true is specified, so they have to be declared with both number and string.
odata-json-csdl-v4.0-wd01-2015-11-09.docx