Skip to content

select inputType and integer type #115

Open
@js-ta

Description

@js-ta

Hello,

in #50 I saw a similar problem to the one I have.
If I try to use the same schema, but with "type": "integer" instead of "type":"number", I get the error following error:

Error: yupSchema.integer is not a function

This is reproducable in your playground.

Here is the schema:

{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "AccountType": {
            "title": "Select account type",
            "description": "",
            "x-jsf-presentation": {
                "inputType": "select"
            },
            "oneOf": [
                {
                    "title": "Normal User",
                    "const": 0
                },
                {
                    "title": "Business",
                    "const": 1
                },
                {
                    "title": "Services Provider",
                    "const": 2
                }
            ],
            "type": "integer"
        }
    },
    "required": [],
    "x-jsf-order": [
        "AccountType"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions