Skip to content

Commit

Permalink
fix: correct schema types (#746)
Browse files Browse the repository at this point in the history
* fix: correct blockLoot schema stackSizeRange type

* fix: mark blockLoot schema stackSizeRange value as being nullable

* fix: mark particles props as required
  • Loading branch information
Eejit43 committed Aug 5, 2023
1 parent d34a2f4 commit 7428c85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion schemas/blockLoot_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
},
"stackSizeRange": {
"description": "The min/max of number of items in this item drop stack",
"type": "array"
"type": "array",
"items": {
"type": ["number", "null"]
}
},
"blockAge": {
"description": "The required age of the block for the item drop to occur",
Expand Down
4 changes: 3 additions & 1 deletion schemas/particles_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"type": "string",
"pattern": "\\S+"
}
}
},
"required": ["id", "name"],
"additionalProperties": false
}
}

0 comments on commit 7428c85

Please sign in to comment.