From c1362cbd632f1564c9b7fb8b19b4adf0c0e8962d Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 19 Feb 2024 16:13:25 +0200 Subject: [PATCH] Update examples/json-schema-to-grammar.py --- examples/json-schema-to-grammar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/json-schema-to-grammar.py b/examples/json-schema-to-grammar.py index 9a7cd5729..6a977f031 100755 --- a/examples/json-schema-to-grammar.py +++ b/examples/json-schema-to-grammar.py @@ -93,6 +93,7 @@ class SchemaConverter: if min_items > 0: first_item = f"({item_rule_name})" successive_items = list_item_operator * (min_items - 1) + min_items -= 1 else: first_item = f"({item_rule_name})?" max_items = schema.get("maxItems")