Skip to content

Commit

Permalink
Fix local image assets failing validation (#46)
Browse files Browse the repository at this point in the history
* Fix local image assets failing

* Remove sid from image test lotties
  • Loading branch information
b-wils authored May 31, 2024
1 parent 694e43e commit b4b83e0
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schema/assets/image.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"if": {
"properties": {
"e": 1
"e": {"const": 1}
}
},
"then": {
Expand Down
File renamed without changes.
20 changes: 20 additions & 0 deletions tests/animations/invalid/malformed-embedded-image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"v": "5.12.2",
"fr": 60,
"ip": 0,
"op": 2100,
"w": 1024,
"h": 768,
"nm": "essential_properties_comp",
"ddd": 0,
"assets": [
{
"id": "image_0",
"w": 1024,
"h": 1024,
"p": "MalformedDataUrl",
"e": 1
}
],
"layers": []
}
20 changes: 20 additions & 0 deletions tests/animations/valid/embedded-image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"v": "5.12.2",
"fr": 60,
"ip": 0,
"op": 2100,
"w": 1024,
"h": 768,
"nm": "essential_properties_comp",
"ddd": 0,
"assets": [
{
"id": "image_0",
"w": 1024,
"h": 1024,
"p": "data:image/jpeg;base64,/InvalidImageBits",
"e": 1
}
],
"layers": []
}
21 changes: 21 additions & 0 deletions tests/animations/valid/local-image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"v": "5.12.2",
"fr": 60,
"ip": 0,
"op": 2100,
"w": 1024,
"h": 768,
"nm": "essential_properties_comp",
"ddd": 0,
"assets": [
{
"id": "image_0",
"w": 1024,
"h": 1024,
"u": "images/",
"p": "triangle.png",
"e": 0
}
],
"layers": []
}

0 comments on commit b4b83e0

Please sign in to comment.