[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-855) Should we define patterns for some of the primitive types
[ https://issues.oasis-open.org/browse/ODATA-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralf Handl updated ODATA-855:
-----------------------------
Description:
In ODATA-842 we added format keywords for common primitive types. Do we also want to use the pattern keyword in the JSON CSDL format for some common string types? in particular:
-Binary
-Guid
-Date
-TimeOfDay
-Duration
was:
In ODATA-842 we added format keywords for common primitive types. Do we also want to use the pattern keyword in the JSON CSDL format for some common string types? in particular:
-GUID
-Date
-DateTimeOffset
-TimeOfDay
-Duration
-Geography types
-Geometry types
Proposal:
Define and use "pattern" keyword values for the following primitive types:
-Binary
-Guid
-Date
-TimeOfDay
-Duration
was:
Define and use "pattern" keyword values for the following primitive types:
-GUID
-Date
-DateTimeOffset
-TimeOfDay
-Duration
-Geography types
-Geometry types
date-time is a standard JSON Schema format, no pattern needed. Pattern would only describe necessary constraint and wouldn't be sufficient unless trying to encode leap-year rules into a rather lengthy pattern
Geo types are represented as GeoJSON, i.e. type:object, use references to edm.json and define the object structure there.
> Should we define patterns for some of the primitive types
> ---------------------------------------------------------
>
> Key: ODATA-855
> URL: https://issues.oasis-open.org/browse/ODATA-855
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: Bug
> Components: OData JSON CSDL
> Environment: [Proposed]
> Reporter: Michael Pizzo
> Priority: Minor
>
> In ODATA-842 we added format keywords for common primitive types. Do we also want to use the pattern keyword in the JSON CSDL format for some common string types? in particular:
> -Binary
> -Guid
> -Date
> -TimeOfDay
> -Duration
>
--
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]