Skip to content

Commit 90fd2dc

Browse files
authored
Merge pull request #88 from ManualForArchipelago/fix-validation
Tell DataValidation that yaml_option is a valid key for starting_items
2 parents 84ddcea + ea6a8aa commit 90fd2dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataValidation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def checkStartingItemsForBadSyntax():
366366
if type(starting_block) is not dict or len(starting_block.keys()) == 0:
367367
raise ValidationError("One of your starting item definitions is not a valid dictionary.\n Each definition must be inside {}, as demonstrated in the Manual documentation.")
368368

369-
valid_keys = ["items", "item_categories", "random", "if_previous_item", "_comment"] # _comment is provided by schema
369+
valid_keys = ["items", "item_categories", "random", "if_previous_item", "_comment", "yaml_option"] # _comment is provided by schema
370370
invalid_keys = [f'"{key}"' for key in starting_block.keys() if key not in valid_keys]
371371

372372
if len(invalid_keys) > 0:

0 commit comments

Comments
 (0)