fix: fix videoAlpha being in percentage in older files, so loosen val… - #142
fix: fix videoAlpha being in percentage in older files, so loosen val…#142KFilosofov wants to merge 1 commit into
Conversation
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Scratch 2.0 (SB2) JSON Schema definitions to accept older projects where the videoAlpha field is stored as a percentage rather than a 0–1 alpha value, preventing valid legacy SB2 files from failing validation.
Changes:
- Loosen SB2 schema constraint for
videoAlphaby increasing its allowed maximum from1to100.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "videoAlpha": { | ||
| "type": "number", | ||
| "minimum": 0, | ||
| "maximum": 1 | ||
| "maximum": 100 | ||
| }, |
The purpose of this PR is to loosen the validation schema for the sb2 file types, the videoAlpha field is in percentage in older files so they fail being validated.