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

[Suggestion] Make it easier to add "date-only" values #6

Open
ehennestad opened this issue Feb 24, 2024 · 0 comments
Open

[Suggestion] Make it easier to add "date-only" values #6

ehennestad opened this issue Feb 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ehennestad
Copy link
Collaborator

ehennestad commented Feb 24, 2024

Some openMINDS property value are date values with no time. A statement like affiliation.endDate = datetime("now") would currently not work because the property validator checks / asserts that the Time/Minute/Second values are 0.

Either create utility classes like date or be less strict about setting the value. An alternative is to allow datetime values but to silently remove the time information, either in a property set method, or when serialising values.

@ehennestad ehennestad added the enhancement New feature or request label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant