1
0
Fork 0
No description
Find a file
Daniel Baumann c8b47c8b66
Releasing fastforward version 6.0.2-1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-07-22 17:44:59 +02:00
.github/workflows Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
cmd/jv Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
debian Releasing fastforward version 6.0.2-1~ffwd13+u1. 2025-07-22 17:44:59 +02:00
kind Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
metaschemas Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
testdata Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
.gitmodules Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
.golangci.yml Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
.pre-commit-hooks.yaml Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
.swp Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
compiler.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
compiler_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
content.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
debug_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
draft.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
draft_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
example_http_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
example_regexp_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
example_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
example_vocab_discriminator_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
example_vocab_uniquekeys_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
filepaths_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
format.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
go.mod Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
go.sum Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
go.work Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
go.work.sum Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
invalid_schemas_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
LICENSE Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
loader.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
loader_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
objcompiler.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
output.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
output_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
position.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
README.md Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
root.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
roots.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
schema.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
suite_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
util.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
util_test.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
validator.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00
vocab.go Adding upstream version 6.0.2. 2025-07-22 17:44:53 +02:00

jsonschema v6.0.2

License GoDoc Go Report Card Build Status codecov

see godoc for examples

Library Features

  • pass JSON-Schema-Test-Suite excluding optional(compare with other impls at bowtie)
    • draft-04
    • draft-06
    • draft-07
    • draft/2019-09
    • draft/2020-12
  • detect infinite loop traps
    • $schema cycle
    • validation cycle
  • custom $schema url
  • vocabulary based validation
  • custom regex engine
  • format assertions
    • flag to enable in draft >= 2019-09
    • custom format registration
    • built-in formats
      • regex, uuid
      • ipv4, ipv6
      • hostname, email
      • date, time, date-time, duration
      • json-pointer, relative-json-pointer
      • uri, uri-reference, uri-template
      • iri, iri-reference
      • period, semver
  • content assertions
    • flag to enable in draft >= 7
    • contentEncoding
      • base64
      • custom
    • contentMediaType
      • application/json
      • custom
    • contentSchema
  • errors
    • introspectable
    • hierarchy
      • alternative display with #
    • output
      • flag
      • basic
      • detailed
  • custom vocabulary
    • enable via $vocabulary for draft >=2019-19
    • enable via flag for draft <= 7
  • mixed dialect support

CLI v0.7.0

to install: go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest

Note that the cli is versioned independently. you can see it in git tags cmd/jv/v0.7.0

Usage: jv [OPTIONS] SCHEMA [INSTANCE...]

Options:
  -c, --assert-content    Enable content assertions with draft >= 7
  -f, --assert-format     Enable format assertions with draft >= 2019
      --cacert pem-file   Use the specified pem-file to verify the peer. The file may contain multiple CA certificates
  -d, --draft version     Draft version used when '$schema' is missing. Valid values 4, 6, 7, 2019, 2020 (default 2020)
  -h, --help              Print help information
  -k, --insecure          Use insecure TLS connection
  -o, --output format     Output format. Valid values simple, alt, flag, basic, detailed (default "simple")
  -q, --quiet             Do not print errors
  -v, --version           Print build information
  • exit code 1 for validation errors, 2 for usage errors
  • validate both schema and multiple instances
  • support both json and yaml files
  • support standard input, use -
  • quite mode with parsable output
  • http(s) url support
    • custom certs for validation, use --cacert
    • flag to skip certificate verification, use --insecure