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 endpoint for retriving sample metadata schema #1166

Closed
pkalita-lbl opened this issue Feb 29, 2024 · 0 comments · Fixed by #1172
Closed

Add endpoint for retriving sample metadata schema #1166

pkalita-lbl opened this issue Feb 29, 2024 · 0 comments · Fixed by #1172
Assignees

Comments

@pkalita-lbl
Copy link
Collaborator

The Field Notes app needs to collect sample metadata in a way that's consistent with the main submission portal. The submission portal relies on a JSON-formatted version of the submission-schema which is then provided to a DataHarmonizer instance:

this.schema = (await import('nmdc-submission-schema/project/json/nmdc_submission_schema.json')).default;
. In order to keep the app and the backend in sync we need to not bundle a copy of the schema into the app; instead it should fetch it dynamically from the backend. To support that we should add an API endpoint that returns the schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant