-
Notifications
You must be signed in to change notification settings - Fork 15
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
Forced cast to string type #8
Comments
This widget implements what we need in @openwisp, so it's good enough for us, but if you can find a way to retain the right type let us know, I'm open for improvements if they're not too complex. |
it's not very difficult. You need to override the
|
Thanks @Timurkhan for sharing your work, if you working on it for your project, could you please create a PR for upstream as well? 😄 |
Certainly. At a minimum, we always provide links to all code elements that were not written by us, indicating the appropriate licenses and indicating the copyright holder / author. |
Friends, this widget works with the JSON type. If you do not explicitly specify a quoted string, then you do not need to interpret the value as a string.
Here is an example that actually causes an error in the application due to forced casting of a value to a string type.
Input: key field
max_length
, value255
. Result{"max_length": "255"}
The text was updated successfully, but these errors were encountered: