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

Add a simple data type for dates #3

Open
mbrush opened this issue Apr 16, 2024 · 3 comments
Open

Add a simple data type for dates #3

mbrush opened this issue Apr 16, 2024 · 3 comments
Assignees

Comments

@mbrush
Copy link
Contributor

mbrush commented Apr 16, 2024

Can extend string, like iri and code data types do.

Consider if we want date or dateTime.

See proposals from Matt's and Bob's respective VA- and GA4GH- data type documents.

@larrybabb
Copy link
Contributor

in json schema we are using the format attribute that is a sibling to the type: string declaration that allows us to control whether the particular property is a specific format of a date (time, date or datetime).

I suppose we could add something to the metaschema processor to maybe make the various data datatypes appear more cleanly, but I think we should defer that until there is a more urgent need.

If this is primarily about the spec and it's documentation we can develop a way to generate these date-based datatypes in the documentation.

@larrybabb
Copy link
Contributor

@ahwagner What say you about adding two simple/primitive datatypes in the spirit of IRI and code called date and datetime that simply predefine the string format so that it is more transparently represented in our documentation and consistently applied in our models?

@ahwagner
Copy link
Member

ahwagner commented Nov 1, 2024

It's a good question and has me rethinking the decision around IRI; it might be simpler to just use the built-in type and format options. Same for date and datetime.

code is useful since it has a regex associated with it that I would only want to update in one place.

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

3 participants