Skip to content

Commit

Permalink
fix test failures caused by missing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
erosb committed Nov 30, 2024
1 parent 346abe1 commit 6ae1faa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PropertiesValidationTest {
"properties": {
"arrProp": {
"type": "array"
} ,
},
"objProp": {
"type": "object"
},
Expand Down Expand Up @@ -55,7 +55,7 @@ class PropertiesValidationTest {
val expected = JsonParser(
"""
{
"instanceRef": "#"
"instanceRef": "#",
"schemaRef": "#",
"message": "multiple validation failures",
"causes": [
Expand Down
14 changes: 7 additions & 7 deletions src/test/kotlin/com/github/erosb/jsonsKema/RefResolutionTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class RefResolutionTest {
val root = createSchemaLoaderForString(
"""
{
"$id": "http://original"
"$id": "http://original",
"$ref": "http://remote#myAnchor"
}
""",
Expand Down Expand Up @@ -226,7 +226,7 @@ class RefResolutionTest {
val root = createSchemaLoaderForString(
"""
{
"$id": "http://original"
"$id": "http://original",
"$ref": "http://remote#myAnchor"
}
""",
Expand Down Expand Up @@ -373,7 +373,7 @@ class RefResolutionTest {
}
}
}
}
},
"$anchor": "MyRootSchema",
"title": "my root schema title"
}
Expand Down Expand Up @@ -401,7 +401,7 @@ class RefResolutionTest {
"""
{
"$id": "https://mismatching-remote",
"$ref": "https://mismatching-remote#MySchema"
"$ref": "https://mismatching-remote#MySchema",
"$defs": {
"MySchema": {
"$anchor": "MySchema",
Expand Down Expand Up @@ -430,7 +430,7 @@ class RefResolutionTest {
{
"$defs" : {
"parent": {
"$id": "/my-domain.json"
"$id": "/my-domain.json",
"properties": {
"child": {
"MySchema": {
Expand Down Expand Up @@ -463,7 +463,7 @@ class RefResolutionTest {
val root = createSchemaLoaderForString(
"""
{
"$ref": "#dyn-ref"
"$ref": "#dyn-ref",
"$defs": {
"DynRefSchema": {
"$dynamicAnchor": "dyn-ref",
Expand Down Expand Up @@ -643,7 +643,7 @@ class RefResolutionTest {
"id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class VocabularyHandlingTest {
fun `format validation is disabled by default`() {
val schema = SchemaLoader(JsonParser("""
{
"$schema": "https://json-schema.org/draft/2020-12/schema"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"format": "email"
}
""")()
Expand All @@ -28,7 +28,7 @@ class VocabularyHandlingTest {
fun `format validation is explicitly enabled`() {
val schema = SchemaLoader(JsonParser("""
{
"$schema": "https://json-schema.org/draft/2020-12/schema"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"format": "email"
}
""")()
Expand Down

0 comments on commit 6ae1faa

Please sign in to comment.