Skip to content

Commit

Permalink
trying to add reproduces for #87 but the test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
erosb committed Nov 3, 2024
1 parent f8b2524 commit 446a7d2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/kotlin/com/github/erosb/jsonsKema/SchemaLoaderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,18 @@ class SchemaLoaderTest {
}
assertThat(exception.message).contains("boolean or object")
}

@Test
fun `empty fragment in $schema`() {
SchemaLoader("""
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"a": {
"type": "number"
}
}
}
""".trimIndent())()
}
}

0 comments on commit 446a7d2

Please sign in to comment.