schemas: relax some number datatypes

This commit is contained in:
Emi Vasilek 2023-11-10 16:44:36 +01:00
parent a41aa52993
commit 065975d4c2
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@
"additionalProperties": false,
"required": [ "price", "amount", "unit" ],
"properties": {
"price": { "type": "integer" },
"price": { "type": "number" },
"amount": { "type": "integer" },
"unit": { "type": "string" }
}
@ -33,7 +33,7 @@
"properties": {
"from": { "type": "string" },
"to": { "type": "string" },
"ratio": { "type": "integer" }
"ratio": { "type": "number" }
}
}
},
@ -43,4 +43,4 @@
}
}
}
}
}

View file

@ -33,4 +33,4 @@
"items": { "$ref": "/recipe.json" }
}
}
}
}