-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removes transforms check from validation rules for custom assets (…
…#32)
- Loading branch information
1 parent
4b81a96
commit 51b27ec
Showing
2 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "commonTransforms.schema.json", | ||
"title": "Common Transform Validation Rules", | ||
"description": "Validation schema for common properties of transforms.", | ||
"type": "object", | ||
"properties": { | ||
"transforms": { | ||
"description": "The transforms of the objects (meshes & skeleton root).", | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "array", | ||
"minItems": 16, | ||
"maxItems": 16, | ||
"items": { | ||
"type": "number" | ||
}, | ||
"const": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], | ||
"errorMessage": { | ||
"const": "Transforms for ${0#} must be neutral (identity matrix: zero translation or rotation, scale of 1). Found ${0}.", | ||
"_": "Transforms for ${0#} must be an array of 16 numbers (flattened 4x4 identity matrix). Found ${0/length} numbers." | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"transforms" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters