Skip to content

Commit

Permalink
feat(schema): regular head & body names for costume (#14)
Browse files Browse the repository at this point in the history
For costumes, head and body meshes are allowed to use names without custom suffix.
  • Loading branch information
Olaf-Wolf3D authored Oct 5, 2023
1 parent 879a58b commit a74c989
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions schemas/assetCostume.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{
"if": {
"properties": {
"name": { "const": "Wolf3D_Body_Custom" }
"name": { "enum": ["Wolf3D_Body", "Wolf3D_Body_Custom"] }
}
},
"then": {
Expand Down Expand Up @@ -69,7 +69,7 @@
{
"if": {
"properties": {
"name": { "const": "Wolf3D_Head_Custom" }
"name": { "enum": ["Wolf3D_Head", "Wolf3D_Head_Custom"] }
}
},
"then": {
Expand Down
11 changes: 7 additions & 4 deletions schemas/meshNames.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"enum": [
"EyeLeft",
"EyeRight",
"Wolf3D_Body_Custom",
"Wolf3D_Head_Custom",
"Wolf3D_Body",
"Wolf3D_Head",
"Wolf3D_Outfit_Bottom",
"Wolf3D_Outfit_Footwear",
"Wolf3D_Outfit_Top",
Expand All @@ -70,9 +70,12 @@
"Wolf3D_Facewear",
"Wolf3D_Glasses",
"Wolf3D_Hair",
"Wolf3D_Headwear"
"Wolf3D_Headwear",
"Wolf3D_Body_Custom",
"Wolf3D_Head_Custom"
],
"errorMessage": "Mesh name should be one of 'EyeLeft', 'EyeRight', 'Wolf3D_Body_Custom', 'Wolf3D_Head_Custom', 'Wolf3D_Outfit_Bottom', 'Wolf3D_Outfit_Footwear', 'Wolf3D_Outfit_Top', 'Wolf3D_Teeth', 'Wolf3D_Beard', 'Wolf3D_Facewear', 'Wolf3D_Glasses', 'Wolf3D_Hair', 'Wolf3D_Headwear'. Found ${0} instead."
"$comment": "Wolf3D_Body_Custom and Wolf3D_Head_Custom are deprecated, but allowed for backwards compatibility.",
"errorMessage": "Mesh name should be one of 'EyeLeft', 'EyeRight', 'Wolf3D_Body', 'Wolf3D_Head', 'Wolf3D_Outfit_Bottom', 'Wolf3D_Outfit_Footwear', 'Wolf3D_Outfit_Top', 'Wolf3D_Teeth', 'Wolf3D_Beard', 'Wolf3D_Facewear', 'Wolf3D_Glasses', 'Wolf3D_Hair', 'Wolf3D_Headwear'. Found ${0} instead."
},
"outfit": {
"type": "string",
Expand Down

0 comments on commit a74c989

Please sign in to comment.