├── .github └── workflows │ ├── go.yaml │ └── release.yaml ├── .gitmodules ├── .golangci.yml ├── .pre-commit-hooks.yaml ├── .swp ├── LICENSE ├── README.md ├── cmd └── jv │ ├── go.mod │ ├── go.sum │ ├── loader.go │ └── main.go ├── compiler.go ├── compiler_test.go ├── content.go ├── debug_test.go ├── draft.go ├── draft_test.go ├── example_http_test.go ├── example_regexp_test.go ├── example_test.go ├── example_vocab_bytecount_test.go ├── example_vocab_discriminator_test.go ├── example_vocab_openpapi_discriminator_test.go ├── example_vocab_uniquekeys_test.go ├── filepaths_test.go ├── format.go ├── go.mod ├── go.sum ├── go.work ├── go.work.sum ├── invalid_schemas_test.go ├── kind └── kind.go ├── loader.go ├── loader_test.go ├── metaschemas ├── draft-04 │ └── schema ├── draft-06 │ └── schema ├── draft-07 │ └── schema └── draft │ ├── 2019-09 │ ├── meta │ │ ├── applicator │ │ ├── content │ │ ├── core │ │ ├── format │ │ ├── meta-data │ │ └── validation │ └── schema │ └── 2020-12 │ ├── meta │ ├── applicator │ ├── content │ ├── core │ ├── format-annotation │ ├── format-assertion │ ├── meta-data │ ├── unevaluated │ └── validation │ └── schema ├── objcompiler.go ├── output.go ├── output_test.go ├── position.go ├── root.go ├── roots.go ├── schema.go ├── suite_test.go ├── testdata ├── Extra-Test-Suite │ ├── remotes │ │ └── draft2020-12 │ │ │ └── no-applicator.json │ └── tests │ │ ├── draft2020-12 │ │ ├── const.json │ │ ├── infinite-loop-detection.json │ │ ├── mixed-dialects.json │ │ ├── optional │ │ │ ├── contentSchema.json │ │ │ └── format │ │ │ │ ├── date.json │ │ │ │ ├── duration.json │ │ │ │ ├── email.json │ │ │ │ └── time.json │ │ ├── properties.json │ │ ├── ref.json │ │ ├── uniqueItems.json │ │ └── vocabulary.json │ │ ├── draft4 │ │ ├── dependencies.json │ │ └── mixed-dialects.json │ │ └── draft7 │ │ ├── if-then-else.json │ │ └── optional │ │ └── format │ │ ├── period.json │ │ └── semver.json ├── debug.json ├── examples │ ├── dog.json │ ├── instance.json │ ├── sample schema.json │ └── schema.json ├── invalid_schemas.json └── marshal.json ├── util.go ├── util_test.go ├── validator.go └── vocab.go /.github/workflows/go.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/.github/workflows/go.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/.gitmodules -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/.golangci.yml -------------------------------------------------------------------------------- /.pre-commit-hooks.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/.pre-commit-hooks.yaml -------------------------------------------------------------------------------- /.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/.swp -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/README.md -------------------------------------------------------------------------------- /cmd/jv/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/cmd/jv/go.mod -------------------------------------------------------------------------------- /cmd/jv/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/cmd/jv/go.sum -------------------------------------------------------------------------------- /cmd/jv/loader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/cmd/jv/loader.go -------------------------------------------------------------------------------- /cmd/jv/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/cmd/jv/main.go -------------------------------------------------------------------------------- /compiler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/compiler.go -------------------------------------------------------------------------------- /compiler_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/compiler_test.go -------------------------------------------------------------------------------- /content.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/content.go -------------------------------------------------------------------------------- /debug_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/debug_test.go -------------------------------------------------------------------------------- /draft.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/draft.go -------------------------------------------------------------------------------- /draft_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/draft_test.go -------------------------------------------------------------------------------- /example_http_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/example_http_test.go -------------------------------------------------------------------------------- /example_regexp_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/example_regexp_test.go -------------------------------------------------------------------------------- /example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/example_test.go -------------------------------------------------------------------------------- /example_vocab_bytecount_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/example_vocab_bytecount_test.go -------------------------------------------------------------------------------- /example_vocab_discriminator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/example_vocab_discriminator_test.go -------------------------------------------------------------------------------- /example_vocab_openpapi_discriminator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/example_vocab_openpapi_discriminator_test.go -------------------------------------------------------------------------------- /example_vocab_uniquekeys_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/example_vocab_uniquekeys_test.go -------------------------------------------------------------------------------- /filepaths_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/filepaths_test.go -------------------------------------------------------------------------------- /format.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/format.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/go.sum -------------------------------------------------------------------------------- /go.work: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/go.work -------------------------------------------------------------------------------- /go.work.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/go.work.sum -------------------------------------------------------------------------------- /invalid_schemas_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/invalid_schemas_test.go -------------------------------------------------------------------------------- /kind/kind.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/kind/kind.go -------------------------------------------------------------------------------- /loader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/loader.go -------------------------------------------------------------------------------- /loader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/loader_test.go -------------------------------------------------------------------------------- /metaschemas/draft-04/schema: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft-04/schema -------------------------------------------------------------------------------- /metaschemas/draft-06/schema: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft-06/schema -------------------------------------------------------------------------------- /metaschemas/draft-07/schema: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft-07/schema -------------------------------------------------------------------------------- /metaschemas/draft/2019-09/meta/applicator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2019-09/meta/applicator -------------------------------------------------------------------------------- /metaschemas/draft/2019-09/meta/content: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2019-09/meta/content -------------------------------------------------------------------------------- /metaschemas/draft/2019-09/meta/core: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2019-09/meta/core -------------------------------------------------------------------------------- /metaschemas/draft/2019-09/meta/format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2019-09/meta/format -------------------------------------------------------------------------------- /metaschemas/draft/2019-09/meta/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2019-09/meta/meta-data -------------------------------------------------------------------------------- /metaschemas/draft/2019-09/meta/validation: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2019-09/meta/validation -------------------------------------------------------------------------------- /metaschemas/draft/2019-09/schema: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2019-09/schema -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/applicator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/applicator -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/content: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/content -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/core: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/core -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/format-annotation: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/format-annotation -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/format-assertion: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/format-assertion -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/meta-data -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/unevaluated: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/unevaluated -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/meta/validation: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/meta/validation -------------------------------------------------------------------------------- /metaschemas/draft/2020-12/schema: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/metaschemas/draft/2020-12/schema -------------------------------------------------------------------------------- /objcompiler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/objcompiler.go -------------------------------------------------------------------------------- /output.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/output.go -------------------------------------------------------------------------------- /output_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/output_test.go -------------------------------------------------------------------------------- /position.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/position.go -------------------------------------------------------------------------------- /root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/root.go -------------------------------------------------------------------------------- /roots.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/roots.go -------------------------------------------------------------------------------- /schema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/schema.go -------------------------------------------------------------------------------- /suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/suite_test.go -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/remotes/draft2020-12/no-applicator.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/remotes/draft2020-12/no-applicator.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/const.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/const.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/infinite-loop-detection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/infinite-loop-detection.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/mixed-dialects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/mixed-dialects.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/optional/contentSchema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/optional/contentSchema.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/date.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/date.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/duration.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/duration.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/email.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/email.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/time.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/optional/format/time.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/properties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/properties.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/ref.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/ref.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/uniqueItems.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/uniqueItems.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft2020-12/vocabulary.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft2020-12/vocabulary.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft4/dependencies.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft4/dependencies.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft4/mixed-dialects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft4/mixed-dialects.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft7/if-then-else.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft7/if-then-else.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft7/optional/format/period.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft7/optional/format/period.json -------------------------------------------------------------------------------- /testdata/Extra-Test-Suite/tests/draft7/optional/format/semver.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/Extra-Test-Suite/tests/draft7/optional/format/semver.json -------------------------------------------------------------------------------- /testdata/debug.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/debug.json -------------------------------------------------------------------------------- /testdata/examples/dog.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/examples/dog.json -------------------------------------------------------------------------------- /testdata/examples/instance.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/examples/instance.json -------------------------------------------------------------------------------- /testdata/examples/sample schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/examples/sample schema.json -------------------------------------------------------------------------------- /testdata/examples/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/examples/schema.json -------------------------------------------------------------------------------- /testdata/invalid_schemas.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/invalid_schemas.json -------------------------------------------------------------------------------- /testdata/marshal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/testdata/marshal.json -------------------------------------------------------------------------------- /util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/util.go -------------------------------------------------------------------------------- /util_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/util_test.go -------------------------------------------------------------------------------- /validator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/validator.go -------------------------------------------------------------------------------- /vocab.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/santhosh-tekuri/jsonschema/HEAD/vocab.go --------------------------------------------------------------------------------