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

Constraints over dates in metaschema #323

Closed
wendellpiez opened this issue Mar 5, 2019 · 1 comment
Closed

Constraints over dates in metaschema #323

wendellpiez opened this issue Mar 5, 2019 · 1 comment
Labels
Scope: Metaschema Issues targeted at the metaschema pipeline User Story

Comments

@wendellpiez
Copy link
Contributor

wendellpiez commented Mar 5, 2019

User Story:

As an OSCAL developer, I would like to constrain certain values in my metaschema to represent dates. As an OSCAL user I would like to be able to benefit from the enforcement of such constraints in appropriate application logic.

This feature request was first documented on #267.

Goals:

  1. Define the boundaries around expected metaschema support for date fields or values, in view of the capabilities of both XSD and JSON schema for validating dates.

  2. Subject to those definitions, implement support for dates in OSCAL metaschema.

To be consistent with the metaschema design, this typing might be made available on flags (which support a range of data types), but not fields.

Dependencies:

XSD offers support for date types, including dates with time zones, using a standard notation (ISO 8601) that includes YYYY-MM-DD notation. JSON Schema supports no value-space typing for dates, only lexical typing for strings that look like dates (without forbidding 2015-12-32 or 2019-04-31).

Acceptance Criteria

Date-related functionality in the metaschema, and in schemas thereby produced, has been defined, implemented, demonstrated and documented.

@wendellpiez wendellpiez changed the title Constraints over dates in metaschema? Constraints over dates in metaschema Mar 5, 2019
@david-waltermire david-waltermire added User Story Scope: Metaschema Issues targeted at the metaschema pipeline labels May 8, 2019
@david-waltermire
Copy link
Contributor

This will be addressed by #436. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Metaschema Issues targeted at the metaschema pipeline User Story
Projects
None yet
Development

No branches or pull requests

2 participants