geojson / schema

JSON Schema for GeoJSON
https://www.npmjs.com/package/geojson-schema
MIT License
100 stars 17 forks source link

in schemas, should "$id" fragments be used for the sake of reusability? #10

Open jmcanterafonseca opened 5 years ago

jmcanterafonseca commented 5 years ago

I've created the following derivative of the Geometry schema including "$id" fragment identifiers for the different geometries as we need to cross-reference them from other Schemas.

If you think this can be useful for others I can create a PR

please let me know

https://raw.githubusercontent.com/FIWARE/dataModels/7962684a41a0bad8ab351938008d1d55818e0224/geometry-schema.json

tschaub commented 3 years ago

@jmcanterafonseca - Would it work for your purposes to point to the schema for the individual geometry types? E.g. https://geojson.org/schema/Point.json, https://geojson.org/schema/LineString.json, etc.