[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: ----------------------------- Proposal: Define and use "pattern" keyword values for the following primitive types: -Binary "pattern": "^([A-Za-z0-9_-]{4})*([A-Za-z0-9_-]{3}[A-Za-z0-9_-]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048]=?|[A-Za-z0-9_-][AQgw](==)?)?$" -Guid "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" -Date "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$" -TimeOfDay including Precision "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$" - for Precision=0 "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?$" for Precision=12 -Duration including Precision "pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+S)?)?$" - for Precision=0 "pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]{1,12})?S)?)?$" - for Precision=12 was: Define and use "pattern" keyword values for the following primitive types: -Binary -Guid -Date -TimeOfDay -Duration > 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]