Closed andrewhercules closed 3 years ago
After investigating react-json-view we are able to collapse deeply nested fields or large datasets. We are also able to download the schema.
Ticket closed as initial implementation of data downloads page will not contain schema
Based on the work in #1411, a sample JSON is now available that contains the fields generated by the ETL pipelines for each dataset.
Command:
gsutil -m cat gs://ot-snapshots/etl/outputs/21.03.1/metadata/\*\*/part\* | jq '.' | less > data_download.json
Output file: sample-data-download-response.json.zip
The JSON also contains the schema for each dataset in the
serialisedSchema
field.Can we please investigate potential JSON schema viewers, for example material-ui-json-schema-viewer and json-schema-viewer? Is it feasible to display the dataset schema based on the
serialisedSchema
string?If we can display the schema, would the package support?
The feedback on whether this is feasible will inform the ongoing discussions around the data download page specification.