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 error checking in customize_schema_rdm #23

Open
tmorrell opened this issue Apr 11, 2024 · 0 comments
Open

Add error checking in customize_schema_rdm #23

tmorrell opened this issue Apr 11, 2024 · 0 comments

Comments

@tmorrell
Copy link
Member

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

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)

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

2 participants