I think I may have found a bug.
Example Code:
{
"type": "number",
"id": "products_per_page",
"label": "Products per page",
"default": 0.3
}
In the section schema, when I define a default number input as a decimal, it shows me this error message:
- Error: Invalid schema: setting with id=“x” default must be an integer or datasource access path
But when I look at the documentation for input settings, it says that a number can be returned as any numeric value, including floats and integers. Decimals work when typing it in manually, but throws an error when trying to set a default value.
Is there any way to fix this? Any help would be appreciated. Thanks.