Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defined Data Types #9

Open
boshrin opened this issue Jan 20, 2015 · 3 comments
Open

Defined Data Types #9

boshrin opened this issue Jan 20, 2015 · 3 comments

Comments

@boshrin
Copy link

boshrin commented Jan 20, 2015

SCIM defines the following data types, and does not permit new types:

  • String
  • Boolean
  • Decimal
  • Integer
  • DateTime
  • Binary
  • Reference

CIFER Core Schema has the following additional types:

  • Country
  • Date
  • Locale
  • Region
  • extensibleVocabulary
@boshrin
Copy link
Author

boshrin commented Jan 20, 2015

  • Country, Locale, and Region could be "constrained" strings
  • Date could be a "constrained" string, or a dateTime where the time portion is ignored by client and server, or a dateTime where time is always 00:00

@boshrin
Copy link
Author

boshrin commented Jan 21, 2015

Based on today's call, proposal is for Date to also be a constrained string (ISO-8601 format). Keith to ask the SCIM list for suggestions on how to handle (eg) dateOfBirth in a hypothetical schema extension.

@khazelton
Copy link
Contributor

SCIM list responses did not mandate a solution. Proposed resolution: CIFER "date" type maps to a SCIM string with value constrained to conform to what ISO-8601 calls "calendar date", e.g. 2015-02-18 or 20150815. Core schema MUST specify with hyphens. Implementations MUST support hyphenated form. The rationale is that this matches the ISO 8601 time format.

Should be ok to constrain SCIM string type for all the odd types we've come up with so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants