Skip to content

Commit

Permalink
feat: Update to draft 06 of json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Feb 13, 2023
1 parent ecdb57b commit 147f408
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Docker Encapsulated Environment",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/packtivity/environment/localproc-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Local Process Environment for Testing",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Manual Instructions Environment",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/packtivity/environment/noop-env-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Noop Environment for Testing",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/packtivity/packtivity-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Packtivity Meta Description",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Manual Instructions Process",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/packtivity/process/scriptproc-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "String Interpolated Script",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/packtivity/process/stringinterp-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "String Interpolated Command",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Constant Publisher",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Glob Publisher",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/packtivity/publisher/frompar-pub-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Parameter Publisher",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Parameter Publisher",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "YAML Publisher",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Simple Interpolated Publisher",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Manual Instructions Publisher",
"additionalProperties": false,
Expand Down
4 changes: 2 additions & 2 deletions yadageschemas/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

from .dialects import raw_with_defaults
assert raw_with_defaults
from jsonschema import Draft4Validator
from jsonschema import Draft6Validator

def validator(schema_name,schemadir):
schema, resolver = schema_and_refresolver(schema_name,schemadir)
return Draft4Validator(schema, resolver = resolver)
return Draft6Validator(schema, resolver = resolver)

def validate_spec(data, validopts):
return validator(**validopts).validate(data)
2 changes: 1 addition & 1 deletion yadageschemas/yadage/predicates/exprfulfilled-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "JSONPath ready predicate",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/yadage/predicates/jsonpathready-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "JSONPath ready predicate",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/yadage/scheduler/cases.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type":"array",
"items":{
"type":"object",
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/yadage/scheduler/jq-stage-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "jq Scheduler",
"additionalProperties": true,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/yadage/scheduler/multistep-stage-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Multiple Step Scheduler",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/yadage/scheduler/parameterselection.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type":"array",
"title": "Parameter Selection",
"items":{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Single Step Scheduler",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/yadage/scheduler/value_registration.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object"
}
2 changes: 1 addition & 1 deletion yadageschemas/yadage/stage-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Yadage Stage",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion yadageschemas/yadage/workflow-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"title": "Yadage Workflow",
"additionalProperties": false,
Expand Down

0 comments on commit 147f408

Please sign in to comment.