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,
|
||||
"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 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,4 +33,4 @@
|
|||
"items": { "$ref": "/recipe.json" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue