File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ BenchmarkTools = "0.4, 0.5"
2020CodecBzip2 = " ~0.6, 0.7"
2121CodecZlib = " ~0.6, 0.7"
2222JSON = " ~0.21"
23- JSONSchema = " 0.2 "
23+ JSONSchema = " 0.3 "
2424MutableArithmetics = " 0.2"
2525OrderedCollections = " 1"
2626julia = " 1"
Original file line number Diff line number Diff line change @@ -105,9 +105,12 @@ function validate(io::IO)
105105 object = JSON. parse (io)
106106 seekstart (io)
107107 mof_schema = JSONSchema. Schema (JSON. parsefile (SCHEMA_PATH, use_mmap= false ))
108- if ! JSONSchema. isvalid (object, mof_schema)
109- error (" Unable to read file because it does not conform to the MOF " *
110- " schema: " , JSONSchema. diagnose (object, mof_schema))
108+ ret = JSONSchema. validate (object, mof_schema)
109+ if ret != = nothing
110+ error (
111+ " Unable to read file because it does not conform to the MOF " *
112+ " schema: " , ret
113+ )
111114 end
112115 return
113116end
You can’t perform that action at this time.
0 commit comments