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

Update data_tools.onc_json_to_dataset() to ONC API v3 JSON schema and add tests #93

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

douglatornell
Copy link
Member

Update the onc_json_to_dataset() function to handle ONC data web service API v3 response JSON schema. Also add unit tests for the function.

Update the onc_json_to_dataset() function to handle ONC data web service API v3
response JSON schema. Also add unit tests for the function.
Modified onc_json_to_dataset() to include "station" as a dataset attribute from
the `parameters.locationCode` item in the JSON response. This is necessary
because "station" is the key that the `get_onc_ferry` worker expects to find an
element of the metadata it needs under. Updated unit tests to verify that the
"station" attribute exists and has the correct value after conversion.
@douglatornell douglatornell merged commit d059105 into main Feb 7, 2024
1 check passed
@douglatornell douglatornell deleted the update-onc_json_to_dataset branch February 7, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SalishSeaTools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant