common/json-schema : fix GBNF grammar generation for empty object schemas (#28279)

This commit is contained in:
Sergey Sklyarov
2026-09-03 15:37:50 -05:00
committed by GitHub
parent 95ef7fc160
commit c5a5535e6e
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -994,7 +994,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
"additionalProperties": false
})""",
R"""(
root ::= "{" space space "}"
root ::= "{" space "}"
space ::= | " " | "\n"{1,2} [ \t]{0,20}
)"""
});