Skip to content

Commit b48624d

Browse files
committed
Relax skin property validation for legacy archives
1 parent 96b61a9 commit b48624d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/verify_skins_with_codenameone.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"smallFontSize",
2929
"mediumFontSize",
3030
"largeFontSize",
31-
"pixelRatio",
3231
"overrideNames",
3332
)
3433
KNOWN_THEME_FILES = {
@@ -137,7 +136,9 @@ def _validate_properties(props: dict[str, str]) -> None:
137136
_ensure_int("smallFontSize", props["smallFontSize"])
138137
_ensure_int("mediumFontSize", props["mediumFontSize"])
139138
_ensure_int("largeFontSize", props["largeFontSize"])
140-
_ensure_float("pixelRatio", props["pixelRatio"], minimum=0.0)
139+
pixel_ratio = props.get("pixelRatio")
140+
if pixel_ratio is not None:
141+
_ensure_float("pixelRatio", pixel_ratio, minimum=0.0)
141142
_validate_override_names(props["overrideNames"])
142143

143144
platform = props["platformName"].strip()

0 commit comments

Comments
 (0)