Skip to content

Commit

Permalink
Stricter number schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Donkie committed May 12, 2024
1 parent f6d1b58 commit a54effb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 10 additions & 6 deletions filaments.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"type": "string"
},
"density": {
"type": "number"
"type": "number",
"exclusiveMinimum": 0
},
"weights": {
"type": "array",
Expand All @@ -43,10 +44,12 @@
],
"properties": {
"weight": {
"type": "number"
"type": "number",
"minimum": 0
},
"spool_weight": {
"type": "number"
"type": "number",
"minimum": 0
}
}
}
Expand All @@ -56,14 +59,15 @@
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "number"
"type": "number",
"exclusiveMinimum": 0
}
},
"extruder_temp": {
"type": "number"
"type": "integer"
},
"bed_temp": {
"type": "number"
"type": "integer"
},
"colors": {
"type": "array",
Expand Down
3 changes: 2 additions & 1 deletion materials.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"type": "string"
},
"density": {
"type": "number"
"type": "number",
"exclusiveMinimum": 0
}
}
}
Expand Down

0 comments on commit a54effb

Please sign in to comment.