Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add support for checkbox input #16

Merged
merged 1 commit into from
Jul 11, 2023

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