Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ jobs:
version: ['1.10', '1'] # Test against LTS and current minor release
os: [ubuntu-latest, macOS-latest, windows-latest]
arch: [x64]
include:
# Upstream bug: https://github.com/JuliaIO/JSON.jl/issues/386
# include:
# Also test against 32-bit Linux on LTS.
- version: '1.10'
os: ubuntu-latest
arch: x86
# - version: '1.10'
# os: ubuntu-latest
# arch: x86
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
JSONSchemaJSON3Ext = "JSON3"

[compat]
JSON = "0.21"
JSON = "0.21, 1"
JSON3 = "1"
URIs = "1"
julia = "1.9"
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea"

[compat]
HTTP = "1"
JSON = "0.21"
JSON = "1"
JSON3 = "1"
OrderedCollections = "1"
ZipFile = "0.8, 0.9, 0.10"
Expand Down
7 changes: 3 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ end
\"required\": [\"foo\"]
}""")
@test typeof(schema) == Schema
@test typeof(schema.data) == Dict{String,Any}
@test typeof(schema.data) <: AbstractDict{String,Any}
schema_2 = JSONSchema.Schema(false)
@test typeof(schema_2) == Schema
@test typeof(schema_2.data) == Bool
Expand All @@ -237,14 +237,13 @@ end

@testset "errors" begin
@test_throws(
ErrorException("missing property 'Foo' in $(Dict{String,Any}())."),
ErrorException("missing property 'Foo' in $(JSON.parse("{}"))."),
JSONSchema.Schema("""{
"type": "object",
"properties": {"version": {"\$ref": "#/definitions/Foo"}},
"definitions": {}
}""")
}"""),
)

@test_throws(
ErrorException("unmanaged type in ref resolution $(Int64): 1."),
JSONSchema.Schema("""{
Expand Down
Loading