Closed pudo closed 8 years ago
Not in python - but there should be one. I note there are JSON schemas for JSON Table Schema here:
Hey @pudo
As @rgrp points out, there is this JSON Schema for JTS, it does not cover the whole spec - see my notes here. Using this is Python to do what you want is straightforward: use the Python JSON Schema lib with it.
This should definitely replace the validator I coded in JTSKit, so if you want to do a PR for this there please do. This ensures we all use the same validation code (Python and JS libs), and then we need to iterate on this schema to get it up-to-date with recent changes to the spec and some other points I raised in the issue linked to above.
Hope that helps.
I understand wrt. the JSON Schema part, I was just looking for something lightweight that implements utility classes like Schema
and Field
which also set sensible defaults etc. I guess that's JTSKit, see #4 for my confusion on that topic.
This is relevant for https://github.com/okfn/jsontableschema-py and probably more specifically for https://github.com/okfn/jsontableschema-py/issues/34
I'd say any remaining issues about that API should be raised as issues there.
Closing.
Without any data parsing code etc, just a schema validator and object to reflect it.