-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Type conversion on default values is destructive #94
Comments
👍 {
"type": "number",
"value": 64512,
"raw": "0x0000fc00"
} Alternatively we can add |
I like the “raw” member, but I’m still not entirely sure of the use case for doing the conversion during parse. It seems that if a consumer has type “number” and “value”, they can perform the conversion themselves. |
Apologies, I see you answered the above in the PR. 🙏 |
Yeah, the conversion is reasonably easy so it shouldn't be a big issue for users who uses the resulting number value for whatever reason. |
Given
Becomes:
I think the only fix here is not to do the number conversion.
@saschanaz, thoughts?
The text was updated successfully, but these errors were encountered: