├── .envrc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitmodules ├── .travis.yml ├── AUTHORS ├── CHANGELOG ├── CONTRIBUTING.rst ├── HISTORY.rst ├── LICENSE ├── MANIFEST.in ├── README.rst ├── docs ├── Makefile ├── _static │ └── .gitkeep ├── _templates │ └── .gitkeep ├── authors.rst ├── cli.rst ├── conf.py ├── contributing.rst ├── history.rst ├── index.rst ├── installation.rst ├── make.bat ├── operations.rst ├── pointer.rst ├── reference.rst ├── requirements.txt └── validators.rst ├── examples ├── basic.json ├── simple.json └── test.py ├── poetry.lock ├── pyproject.toml ├── requirements-tests.txt ├── setup.cfg ├── src └── jsonspec │ ├── __init__.py │ ├── __main__.py │ ├── _compat.py │ ├── cli.py │ ├── driver.py │ ├── misc │ ├── __init__.py │ └── schemas │ │ ├── address.json │ │ ├── calendar.json │ │ ├── draft-03 │ │ ├── card.json │ │ ├── hyper-schema.json │ │ ├── json-ref.json │ │ ├── links.json │ │ └── schema.json │ │ ├── draft-04 │ │ ├── hyper-schema.json │ │ └── schema.json │ │ └── geo.json │ ├── operations │ ├── __init__.py │ ├── bases.py │ └── exceptions.py │ ├── pointer │ ├── __init__.py │ ├── bases.py │ ├── exceptions.py │ └── stages.py │ ├── reference │ ├── __init__.py │ ├── bases.py │ ├── exceptions.py │ ├── providers.py │ └── util.py │ └── validators │ ├── __init__.py │ ├── bases.py │ ├── draft03.py │ ├── draft04.py │ ├── exceptions.py │ ├── factorize.py │ ├── formats.py │ ├── pointer_util.py │ └── util.py ├── tests ├── __init__.py ├── fixtures │ ├── first.data1.json │ ├── first.data2.json │ ├── first.schema.json │ ├── five.schema.json │ ├── four.base.schema.json │ ├── four.data.json │ ├── four.entry.schema.json │ ├── fs │ │ ├── foo.json │ │ └── foo │ │ │ └── bar.json │ ├── second.data1.json │ ├── second.schema.json │ ├── three.data1.json │ ├── three.data2.json │ └── three.schema.json ├── test_commands.py ├── test_draft03.py ├── test_draft04.py ├── test_errors.py ├── test_errors2.py ├── test_fixes.py ├── test_fs_provider.py ├── test_github.py ├── test_operations.py ├── test_pointer.py ├── test_provider.py ├── test_reference.py └── test_util.py └── tox.ini /.envrc: -------------------------------------------------------------------------------- 1 | layout python3 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/.gitmodules -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/.travis.yml -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/AUTHORS -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CONTRIBUTING.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/CONTRIBUTING.rst -------------------------------------------------------------------------------- /HISTORY.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/HISTORY.rst -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/README.rst -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/_static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/_templates/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/authors.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/authors.rst -------------------------------------------------------------------------------- /docs/cli.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/cli.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/contributing.rst: -------------------------------------------------------------------------------- 1 | .. include:: ../CONTRIBUTING.rst -------------------------------------------------------------------------------- /docs/history.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/history.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/installation.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/installation.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/operations.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/operations.rst -------------------------------------------------------------------------------- /docs/pointer.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/pointer.rst -------------------------------------------------------------------------------- /docs/reference.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/reference.rst -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/requirements.txt -------------------------------------------------------------------------------- /docs/validators.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/docs/validators.rst -------------------------------------------------------------------------------- /examples/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/examples/basic.json -------------------------------------------------------------------------------- /examples/simple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/examples/simple.json -------------------------------------------------------------------------------- /examples/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/examples/test.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-tests.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/requirements-tests.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/setup.cfg -------------------------------------------------------------------------------- /src/jsonspec/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/__init__.py -------------------------------------------------------------------------------- /src/jsonspec/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/__main__.py -------------------------------------------------------------------------------- /src/jsonspec/_compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/_compat.py -------------------------------------------------------------------------------- /src/jsonspec/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/cli.py -------------------------------------------------------------------------------- /src/jsonspec/driver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/driver.py -------------------------------------------------------------------------------- /src/jsonspec/misc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/address.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/address.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/calendar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/calendar.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/draft-03/card.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/draft-03/card.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/draft-03/hyper-schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/draft-03/hyper-schema.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/draft-03/json-ref.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/draft-03/json-ref.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/draft-03/links.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/draft-03/links.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/draft-03/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/draft-03/schema.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/draft-04/hyper-schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/draft-04/hyper-schema.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/draft-04/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/draft-04/schema.json -------------------------------------------------------------------------------- /src/jsonspec/misc/schemas/geo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/misc/schemas/geo.json -------------------------------------------------------------------------------- /src/jsonspec/operations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/operations/__init__.py -------------------------------------------------------------------------------- /src/jsonspec/operations/bases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/operations/bases.py -------------------------------------------------------------------------------- /src/jsonspec/operations/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/operations/exceptions.py -------------------------------------------------------------------------------- /src/jsonspec/pointer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/pointer/__init__.py -------------------------------------------------------------------------------- /src/jsonspec/pointer/bases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/pointer/bases.py -------------------------------------------------------------------------------- /src/jsonspec/pointer/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/pointer/exceptions.py -------------------------------------------------------------------------------- /src/jsonspec/pointer/stages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/pointer/stages.py -------------------------------------------------------------------------------- /src/jsonspec/reference/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/reference/__init__.py -------------------------------------------------------------------------------- /src/jsonspec/reference/bases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/reference/bases.py -------------------------------------------------------------------------------- /src/jsonspec/reference/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/reference/exceptions.py -------------------------------------------------------------------------------- /src/jsonspec/reference/providers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/reference/providers.py -------------------------------------------------------------------------------- /src/jsonspec/reference/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/reference/util.py -------------------------------------------------------------------------------- /src/jsonspec/validators/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/__init__.py -------------------------------------------------------------------------------- /src/jsonspec/validators/bases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/bases.py -------------------------------------------------------------------------------- /src/jsonspec/validators/draft03.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/draft03.py -------------------------------------------------------------------------------- /src/jsonspec/validators/draft04.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/draft04.py -------------------------------------------------------------------------------- /src/jsonspec/validators/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/exceptions.py -------------------------------------------------------------------------------- /src/jsonspec/validators/factorize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/factorize.py -------------------------------------------------------------------------------- /src/jsonspec/validators/formats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/formats.py -------------------------------------------------------------------------------- /src/jsonspec/validators/pointer_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/pointer_util.py -------------------------------------------------------------------------------- /src/jsonspec/validators/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/src/jsonspec/validators/util.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/fixtures/first.data1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/first.data1.json -------------------------------------------------------------------------------- /tests/fixtures/first.data2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/first.data2.json -------------------------------------------------------------------------------- /tests/fixtures/first.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/first.schema.json -------------------------------------------------------------------------------- /tests/fixtures/five.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/five.schema.json -------------------------------------------------------------------------------- /tests/fixtures/four.base.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/four.base.schema.json -------------------------------------------------------------------------------- /tests/fixtures/four.data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/four.data.json -------------------------------------------------------------------------------- /tests/fixtures/four.entry.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/four.entry.schema.json -------------------------------------------------------------------------------- /tests/fixtures/fs/foo.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "/foo" 3 | } 4 | -------------------------------------------------------------------------------- /tests/fixtures/fs/foo/bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "/foo/bar" 3 | } 4 | -------------------------------------------------------------------------------- /tests/fixtures/second.data1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/second.data1.json -------------------------------------------------------------------------------- /tests/fixtures/second.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/second.schema.json -------------------------------------------------------------------------------- /tests/fixtures/three.data1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/three.data1.json -------------------------------------------------------------------------------- /tests/fixtures/three.data2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/three.data2.json -------------------------------------------------------------------------------- /tests/fixtures/three.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/fixtures/three.schema.json -------------------------------------------------------------------------------- /tests/test_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_commands.py -------------------------------------------------------------------------------- /tests/test_draft03.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_draft03.py -------------------------------------------------------------------------------- /tests/test_draft04.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_draft04.py -------------------------------------------------------------------------------- /tests/test_errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_errors.py -------------------------------------------------------------------------------- /tests/test_errors2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_errors2.py -------------------------------------------------------------------------------- /tests/test_fixes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_fixes.py -------------------------------------------------------------------------------- /tests/test_fs_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_fs_provider.py -------------------------------------------------------------------------------- /tests/test_github.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_github.py -------------------------------------------------------------------------------- /tests/test_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_operations.py -------------------------------------------------------------------------------- /tests/test_pointer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_pointer.py -------------------------------------------------------------------------------- /tests/test_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_provider.py -------------------------------------------------------------------------------- /tests/test_reference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_reference.py -------------------------------------------------------------------------------- /tests/test_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tests/test_util.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnoone/json-spec/HEAD/tox.ini --------------------------------------------------------------------------------