Fix date format validation in create/edit dataset use cases #157
Labels
bug
Something isn't working
FY25 Sprint 1
FY25 Sprint 1
GREI Re-arch
GREI re-architecture-related
Original size: 10
Size: 10
A percentage of a sprint. 7 hours.
SPA: Create Dataset Page
SPA: Edit Dataset Page
SPA.Q3
Not related to any specific Q3 feature
Overview of the feature request
Not all metadata fields of all metadata blocks expect a date in the YYYY-MM-DD format. There are metadata fields that expect other date formats, defined by the watermark.
For example, the journalPubDate field also accepts YYYY or YYYY-MM, and currently if these formats are added, js-dataverse returns the following error:
There was an error when validating the field journalPubDate from metadata block journal with parent field journalVolumeIssue in position 0. Reason was: The field requires a valid date format (YYYY-MM-DD).
Fix this to support the formats provided by the watermark field.
What inspired the request?
Edit dataset use case integration
What existing behavior do you want changed?
Edit and create dataset validations
Any brand new behavior do you want to add to js-dataverse?
None
Any open or closed issues related to this feature request?
None
The text was updated successfully, but these errors were encountered: