jsonschema: use more specific schema identifiers

The latest version of `jsonschema` fails if we're not specific about which schema draft
specification we're using.  Update all of them to use the latest one (draft-07).
This commit is contained in:
Todd Gamblin 2021-12-19 11:02:33 -08:00
parent 7703043195
commit bfc69f0e4b
16 changed files with 16 additions and 16 deletions

View file

@ -39,7 +39,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack bootstrap configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -11,7 +11,7 @@
import spack.schema.spec
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack buildcache specfile schema',
'type': 'object',
'additionalProperties': False,

View file

@ -28,7 +28,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack cdash configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -84,7 +84,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack compiler configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -110,7 +110,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack core configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -14,7 +14,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack spec schema',
'type': 'object',
'required': ['database'],

View file

@ -52,7 +52,7 @@
projections_scheme = spack.schema.projections.properties['projections']
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack environment file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -153,7 +153,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack gitlab-ci configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -40,7 +40,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack merged configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -37,7 +37,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack mirror configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -219,7 +219,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack module file configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -154,7 +154,7 @@ def deprecate_paths_and_modules(instance, deprecated_properties):
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack package configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -25,7 +25,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack view projection configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -22,7 +22,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack repository configuration file schema',
'type': 'object',
'additionalProperties': False,

View file

@ -192,7 +192,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack spec schema',
'type': 'object',
'additionalProperties': False,

View file

@ -31,7 +31,7 @@
#: Full schema with metadata
schema = {
'$schema': 'http://json-schema.org/schema#',
'$schema': 'http://json-schema.org/draft-07/schema#',
'title': 'Spack core configuration file schema',
'type': 'object',
'additionalProperties': False,