3 ms·
The properties key is plural but contains a dictionary. Does the schema allow for this to be a list?
by mtucker502 5mo ago
The properties key is plural but contains a dictionary. Does the schema allow for this to be a list?
- kijin 5mo agoNope, properties must be an object (dictionary or null). Which means each property can only appear once. The spec doesn't say what type the value of a property can be, though. Examples in the RFC show strings, floats, and a nested object. So you could probably put a list in there as well if you want to store multiple values under the same key, provided that your decoder knows what to do with such values. (GeoJSON is often converted to and from WKB/WKT, and unorthodox values may be lost in the conversion.)