schemas: relax some number datatypes
This commit is contained in:
parent
a41aa52993
commit
065975d4c2
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [ "price", "amount", "unit" ],
|
"required": [ "price", "amount", "unit" ],
|
||||||
"properties": {
|
"properties": {
|
||||||
"price": { "type": "integer" },
|
"price": { "type": "number" },
|
||||||
"amount": { "type": "integer" },
|
"amount": { "type": "integer" },
|
||||||
"unit": { "type": "string" }
|
"unit": { "type": "string" }
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"from": { "type": "string" },
|
"from": { "type": "string" },
|
||||||
"to": { "type": "string" },
|
"to": { "type": "string" },
|
||||||
"ratio": { "type": "integer" }
|
"ratio": { "type": "number" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -43,4 +43,4 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,4 +33,4 @@
|
||||||
"items": { "$ref": "/recipe.json" }
|
"items": { "$ref": "/recipe.json" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue