You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if this library implemented some checks to ensure that the required CaltechDATA fields are included in the metadata. This would allow us to provide cleaner error messages to the user.
It would be nice if this library implemented some checks to ensure that the required CaltechDATA fields are included in the metadata. This would allow us to provide cleaner error messages to the user.
This could be implemented as a new function in https://github.com/caltechlibrary/caltechdata_api/blob/main/caltechdata_api/customize_schema.py, which could then be called here
caltechdata_api/caltechdata_api/customize_schema.py
Line 137 in 46e05ab
A minimal example would be to check that 'types' and 'resourceTypeGeneral' are present.
Next is checking for title, publication data, and creators
It could also check the structure of the json (That there isn't an array for types, for example)
The text was updated successfully, but these errors were encountered: