-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default format from jsonv2
to geocodejson
#10
Conversation
Define GeocodeJSON json schema for both `search` and `lookup` endpoints and clean now useless schemas. Refs: #2
Reference GeoJSON schema to define the GeocodeJSON one. Put it in a standalone file and reference it inside the OpenAPI spec. Refs: #2
Add `make validate` utility using `@apidevtools/swagger-cli` to validate OpenAPI spec. Add `make bundle` utility to dereference and minify OpenAPI spec and JSON schema. New dependency: `npx`. Refs: #2
Now checksums are computed (pre-commit) and checked (pre-push) for both OpenAPI spec and JSON schema and their minified versions. Refs: #2
Swagger UI now loads the minified OpenAPI spec. Swagger Editor (latest version) doesn't support custom spec passed with envars or url parameters (see [swagger-editor/issues/4411](swagger-api/swagger-editor#4411)). Refs: #2
jsonv2
to geocodejson
jsonv2
to geocodejson
Move OSM specific attributes out of GeocodeJSON schema. Refs: #2
This work is leading to define and publish JSON schemas for three formats: geocodejson, semver and geohash. For geocodejson I opened an issue and forked the official repo ready for a PR. For semver I opened an issue on the official website repo. For geohash I sent an email to the official contant point. |
We are waiting for geocoders/geocodejson-spec#25 but all schema dependencies are now published by https://github.com/jenkin/json-schema-bricks. So I'll merge this PR for now. |
Define GeocodeJSON json schema for both
search
andlookup
endpoints and clean now useless schemas.Add automatic validation, dereferencing and minification tools.
Refs: #2