missing `description` in json-schema
vincentsarago opened this issue · 3 comments
vincentsarago commented
Lines 147 to 184 in d302b29
there is no description
in ☝️ while it's seems to be in the spec: https://github.com/stac-extensions/eo#band-object
KennSmithDS commented
@matthewhanson @m-mohr @emmanuelmathot @sankichi92
Issue Description
I am running into this issue too. The reason for it is the schema specifies no additionalProperties
are allowed, thus blocking anything outside of name
, common_name
, center_wavelength
, full_width_half_max
, and solar_illumination
.
Source of Issue
"fields": {
"type": "object",
"properties": {
"eo:cloud_cover": {
"title": "Cloud Cover",
"type": "number",
"minimum": 0,
"maximum": 100
},
"eo:bands": {
"$ref": "#/definitions/bands"
}
},
"patternProperties": {
"^(?!eo:)": {}
},
"additionalProperties": false
Proposed Change
- Remove this line of code from the schema
"additionalProperties": false
, or... - Add
"description": { "title": "Band Description", "type": "string"}
Code Fix
m-mohr commented
It is correct that description is missing, but what has been written about additionalProperties
is not correct as it doesn't apply for the content of eo:bands. You can add whatever you want to the bands without any validation complaints...