add missing resolve_refs call to enable subschema use (#1959)

This commit is contained in:
Reithan 2026-02-05 06:12:59 -08:00 committed by GitHub
parent c2d96328fe
commit de3ed7d7d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1102,6 +1102,7 @@ def convert_json_to_gbnf(json_obj):
dotall=False,
raw_pattern=False)
schema = json.loads(json.dumps(json_obj))
schema = converter.resolve_refs(schema, '')
converter.visit(schema, '')
outstr = converter.format_grammar()
return outstr