Issue with `input_schema` -> `type`:`number`
# đź—Łgeneral-chat
p
hi I have a problem.
Error: Input schema is not valid (Field schema.properties.products.items.amount is not matching any input schema type definition. Please make sure that it's type is valid.)
when I change amount type to integer it works perfectly fine, but it doesn't want to work when I change it to number. I need it to be number, because I want to accept floating-point numbers https://cdn.discordapp.com/attachments/1206131794261315594/1455555336831504515/image.png?ex=6955cfcb&is=69547e4b&hm=4273cf36d1db3b0229b74c692172a29d0a87c88a1cf093e9026b2e2c14d2edab& https://cdn.discordapp.com/attachments/1206131794261315594/1455555337380696229/image.png?ex=6955cfcb&is=69547e4b&hm=53bfe7b9e0addcca524200fe308b64df503494edf7881d9082b6b4d48c4af17d&
s
The same issue for me in the console, seems like the type
number
is not working unless
editor
is explicitly set to
number
. It works partially when the editor is explicitly set to
number
with
schemaBased
- when properties like
type
,
properties
,
required
and
additionalProperties
are set âś… - but not when the
items
->
type
is set directly ❌ like:
Copy code
json
          "items": {
              "type": "number",
              "editor": "number"
          }