phalt / swapi

*NOT MAINTAINED - NO GUARENTEE TO BE UP*
https://phalt.github.io/pokeapi-and-swapi-going-forward/
BSD 3-Clause "New" or "Revised" License
890 stars 505 forks source link

JSON schema validation errors #81

Closed jstoiko closed 7 years ago

jstoiko commented 7 years ago

There is an error in the films' JSON schema:

$ http -b swapi.co/api/films/ | jq -cr '.results[]' | while read json; do (echo $json | jsonschema -i /dev/stdin resources/schemas/films.json); done
(...)
jsonschema.exceptions.SchemaError: u'date' is not valid under any of the given schemas
(...)

There is no such thing as "type": "date" (see http://json-schema.org/latest/json-schema-core.html#rfc.section.4.2).