Skip to content

Conversation

saicheck2233
Copy link
Owner

Description: Add support for checkbox inputs, below is the schema used for generating a checkbox. format:checkbox and enum is needed for generating checkboxes.

{
    "$schema": "http://json-schema.org/draft-03/schema#",
    "type": "object",
    "properties": {
        "radio1": {
            "type": "boolean",
            "format": "checkbox",
            "title": "Animal",
            "required": true,
            "enum": [
                "Dog",
                "Cat",
                "Bird"
            ]
        }
    }
}

Changes:
image
Schema needed to generate a form with checkboxes.

image
Generated form with checkboxes.

@saicheck2233 saicheck2233 merged commit 6ff78cc into master Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants