swimdrinkfish / opendata

Open data standard for automated exchange of recreational water quality data
https://www.recreationalwater.ca/
MIT License
12 stars 6 forks source link

Remove minItems property from #/properties/records/ #17

Open RuarriS opened 4 years ago

RuarriS commented 4 years ago

MinItems property for records Array does not allow for a schema compliant way to show that no records have been returned. This could happen when working with APIs, and there are no records responsive to a query.

This violates spec: { "$schema": "https://raw.githubusercontent.com/swimdrinkfish/opendata/master/v1.0.1/schema.json#", "documentTime": "2020-09-02T18:33:28.095921+00:00", "records": [] }

dylanneild commented 4 years ago

This change should be incorporated into data standard v1.1.