Skip to content

Commit

Permalink
fix: correctly report unexpected top-level elements
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Jun 29, 2024
1 parent 9c210b3 commit f334993
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/kotlin/com/gw2tb/apigen/test/schema.kt
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ private class SchemaMatcher(

override fun close() {
check(!this::_errors.isInitialized) { "SchemaMatcher has already been closed" }
trackingConsumer.report(this::error)
_errors = mutableErrors.toList()
}

Expand Down

0 comments on commit f334993

Please sign in to comment.