Skip to content

Commit

Permalink
encoding/jsonschema: remove draft-05 version
Browse files Browse the repository at this point in the history
The draft-05 JSON Schema version does not exist,
and should not be used [1].

[1] https://json-schema.org/draft-06/json-schema-release-notes#q:-what-happened-to-draft-05

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Ie00e9d7619fbcdb15c89e65412b47b39ef9ec949
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199485
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
  • Loading branch information
rogpeppe committed Aug 14, 2024
1 parent dc3ba30 commit dbcca4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
15 changes: 7 additions & 8 deletions encoding/jsonschema/schemaversion_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions encoding/jsonschema/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ type schemaVersion int
const (
versionUnknown schemaVersion = iota // unknown
versionDraft04 // http://json-schema.org/draft-04/schema#
versionDraft05 // http://json-schema.org/draft-05/schema#
versionDraft06 // http://json-schema.org/draft-06/schema#
versionDraft07 // http://json-schema.org/draft-07/schema#
version2019_09 // https://json-schema.org/draft/2019-09/schema
version2020_12 // https://json-schema.org/draft/2020-12/schema
// Note: draft 05 never existed and should not be used.
versionDraft06 // http://json-schema.org/draft-06/schema#
versionDraft07 // http://json-schema.org/draft-07/schema#
version2019_09 // https://json-schema.org/draft/2019-09/schema
version2020_12 // https://json-schema.org/draft/2020-12/schema

numVersions // unknown
)
Expand Down

0 comments on commit dbcca4c

Please sign in to comment.