Based on https://demo.grocy.info/api/openapi/specification:
{
"openapi": "3.1.0",
"components": {
"schemas": {
"Product": {
"type": "object",
"properties": {
"min_stock_amount": {
"type": "number",
"minimum": 0,
"default": 0
}
},
"example": {
"min_stock_amount": "8"
}
}
}
}
}
Produces
openapi3.errors.SpecError: Expected components.schemas.Product.properties.min_stock_amount.default
to be one of [<class 'float'>], got <class 'int'>