Generates standalone JSON Schema documents for GeoJSON object types (Feature, Point, Polygon, etc.) as defined by RFC 7946. Current stable version is 1.0.5, released infrequently. Each schema is self-contained (no $ref dependencies), allowing consumers to fetch only what they need. Key differentiator: provides complete, non-referenced schemas ideal for offline or selective validation. Cannot validate linear ring closure or right-hand rule, requiring custom logic. Used for validating GeoJSON structures in any JSON Schema compliant validator.
npm install geojson-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Validates a GeoJSON Point using AJV with the standalone Point schema from geojson-schema.
Implement custom validation for closed rings and right-hand rule as per RFC 7946.
Use individual schemas directly; do not rely on $ref to other schemas.
Use CommonJS require or configure your bundler to handle JSON imports.
Use require('geojson-schema/Point.json') with the specific schema file.Use require() with the .json extension, or if using ESM, use createRequire or import assertion.
No dependency data recorded yet.