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

Form Builder - IntegerField min and max are exported as strings and not integers #852

Open
mike-lerch opened this issue Sep 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mike-lerch
Copy link

The MSON Demo Form Builder exports integer fields like this:

                        {
                            "name": "test",
                            "label": "test",
                            "minValue": "1",
                            "maxValue": "60",
                            "component": "IntegerField"
                        }

Note that minValue and maxValue are strings and not integers. This can cause some confusing results if this is used as-is because integers will be compared to strings with unexpected validation errors.

It should produce output like this:

                        {
                            "name": "test",
                            "label": "test",
                            "minValue": 1,
                            "maxValue": 60,
                            "component": "IntegerField"
                        }
@redgeoff redgeoff added the bug Something isn't working label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants