Skip to content

Commit 1255ea1

Browse files
authored
[docs] Bump JSONSchema.jl (#1739)
1 parent e4b6629 commit 1255ea1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
77
[compat]
88
Documenter = "0.27.10"
99
JSON = "0.21"
10-
JSONSchema = "0.3"
10+
JSONSchema = "1"

docs/src/submodules/FileFormats/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ julia> good_model = JSON.parse("""
228228
}
229229
""");
230230
231-
julia> isvalid(good_model, schema)
231+
julia> isvalid(schema, good_model)
232232
true
233233
```
234234

@@ -247,13 +247,13 @@ julia> bad_model = JSON.parse("""
247247
}
248248
""");
249249
250-
julia> isvalid(bad_model, schema)
250+
julia> isvalid(schema, bad_model)
251251
false
252252
```
253253

254254
Use `JSONSchema.validate` to obtain more insight into why the validation failed:
255255
```jldoctest schema_mof
256-
julia> JSONSchema.validate(bad_model, schema)
256+
julia> JSONSchema.validate(schema, bad_model)
257257
Validation failed:
258258
path: [variables][1]
259259
instance: Dict{String, Any}("NaMe" => "x")

0 commit comments

Comments
 (0)