Update examples/json-schema-to-grammar.py
This commit is contained in:
parent
888f1f5439
commit
c1362cbd63
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue