opengeospatial / CoverageJSON

Public repo for CoverageJSON project
Apache License 2.0
10 stars 8 forks source link

Checking Hyrax (bes) covjson responses against covjson test suite #96

Closed lewismc closed 2 years ago

lewismc commented 2 years ago

I have been documenting various issues with the covjson responses generated by OPeNDAP Hyrax (1.16.0). Before I go down the rabbit hole, it would be great if I could literally test a given covjson file against a test suite. I vividly remember seeing mention of a test suite somewhere...? Is this possible? Thanks for any info...

jonblower commented 2 years ago

Yes it is! This hasn't been formally published yet, but there is a JSON schema in a very-nearly-complete state at https://github.com/covjson/covjson-validator/. If you just want to grab the schema itself it's here: https://covjson.org/schema/dev/coveragejson.json.

The schema is used by the playground to check inputs. It can't check every CovJSON rule, but it is fairly comprehensive.

jonblower commented 2 years ago

(To augment the schema we plan to generate a Python validator tool, but this is still at a very early stage, with no release timescale yet.)

chris-little commented 2 years ago

@lewismc Can we close this issue? There is a PR imminent with increased prominence for the schema.

chris-little commented 2 years ago

@lewismc PR highlighting schema and community sandbox now reviewed and merged.