From 46066871912b8c9c29199795cd73fab1349f1a9d Mon Sep 17 00:00:00 2001 From: odow Date: Thu, 9 Sep 2021 15:22:10 +1200 Subject: [PATCH] [FileFormats] Bump version of JSONSchema.jl --- Project.toml | 2 +- test/FileFormats/MOF/MOF.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 325fb9f3eb..fc4516a722 100644 --- a/Project.toml +++ b/Project.toml @@ -20,7 +20,7 @@ BenchmarkTools = "0.4, 0.5, 0.6, 0.7, 1.0" CodecBzip2 = "~0.6, 0.7" CodecZlib = "~0.6, 0.7" JSON = "~0.21" -JSONSchema = "0.3" +JSONSchema = "1" MutableArithmetics = "0.2" OrderedCollections = "1" julia = "1" diff --git a/test/FileFormats/MOF/MOF.jl b/test/FileFormats/MOF/MOF.jl index 673eb399e6..0965a7eb29 100644 --- a/test/FileFormats/MOF/MOF.jl +++ b/test/FileFormats/MOF/MOF.jl @@ -21,7 +21,7 @@ function _validate(filename::String) MOI.FileFormats.AutomaticCompression(), ) do io object = JSON.parse(io) - ret = JSONSchema.validate(object, SCHEMA) + ret = JSONSchema.validate(SCHEMA, object) if ret !== nothing error( "Unable to read file because it does not conform to the MOF " *