Skip to content

Commit

Permalink
fix(schema): tri-count error messages (#22)
Browse files Browse the repository at this point in the history
* fix(schema): tri-count error messages

error message was referencing mesh names which now don't apply anymore.
  • Loading branch information
Olaf-Wolf3D authored Nov 10, 2023
1 parent 3dd9f1c commit a64e5a1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions schemas/meshTriangleCount.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"maximum": 1000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 1000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 1000 triangles. Found: ${0}."
}
},
"costume": {
Expand All @@ -20,23 +20,23 @@
"maximum": 30000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 30000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 30000 triangles. Found: ${0}."
}
},
"facewear": {
"type": "integer",
"maximum": 2000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 2000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 2000 triangles. Found: ${0}."
}
},
"glasses": {
"type": "integer",
"maximum": 1000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 1000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 1000 triangles. Found: ${0}."
}
},
"hair": {
Expand All @@ -45,7 +45,7 @@
"maximum": 5000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 5000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 5000 triangles. Found: ${0}."
}
},
"halfbodyShirt": {
Expand All @@ -54,7 +54,7 @@
"maximum": 1000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 1000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 1000 triangles. Found: ${0}."
}
},
"headwear": {
Expand All @@ -63,7 +63,7 @@
"maximum": 2500,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 2500. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 2500 triangles. Found: ${0}."
}
},
"outfit": {
Expand All @@ -72,7 +72,7 @@
"maximum": 20000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 20000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 20000 triangles. Found: ${0}."
}
},
"outfitBottom": {
Expand All @@ -81,7 +81,7 @@
"maximum": 7500,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 7500. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 7500 triangles. Found: ${0}."
}
},
"outfitTop": {
Expand All @@ -90,7 +90,7 @@
"maximum": 9000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 9000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 9000 triangles. Found: ${0}."
}
},
"outfitFootwear": {
Expand All @@ -99,7 +99,7 @@
"maximum": 2000,
"errorMessage": {
"minimum": "Too few triangles! This asset must have at least 1 triangle.",
"maximum": "Mesh ${1/name} exceeds triangle count budget. Allowed: 2000. Found: ${0}."
"maximum": "Too many triangles! This asset must not have more than 2000 triangles. Found: ${0}."
}
}
}
Expand Down

0 comments on commit a64e5a1

Please sign in to comment.