Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

filtering hints by type #63

Open
derhuerst opened this issue Apr 15, 2017 · 1 comment
Open

filtering hints by type #63

derhuerst opened this issue Apr 15, 2017 · 1 comment

Comments

@derhuerst
Copy link
Contributor

thanks for this tool! i'm trying to use this to validate GeoJSON coming from a web service, so i'm interested only in the fact that the response is valid GeoJSON.

reading the GeoJSON spec, it sounds a lot like the "old-style crs member is not recommended" warning should be labeled as a warning:

OGC CRS URNs such as urn:ogc:def:crs:OGC:1.3:CRS84 shall be preferred over legacy identifiers such as EPSG:4326.

I'd like to propose to add a level field to all hints returned by hint(data). others could continue using this lib just like before, but it would be possible to tell if data is outright invalid or just doesn't comply with recommendations.

@derhuerst
Copy link
Contributor Author

This would work similar to ESLint, which returns a severity property with each message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant