Skip to content

Commit

Permalink
Merge pull request #88 from ManualForArchipelago/fix-validation
Browse files Browse the repository at this point in the history
Tell DataValidation that yaml_option is a valid key for starting_items
  • Loading branch information
FuzzyGamesOn authored Sep 28, 2024
2 parents 84ddcea + ea6a8aa commit 90fd2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataValidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def checkStartingItemsForBadSyntax():
if type(starting_block) is not dict or len(starting_block.keys()) == 0:
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.")

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

if len(invalid_keys) > 0:
Expand Down

0 comments on commit 90fd2dc

Please sign in to comment.