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

Fix panic in buildCodecForTypeDescribedByString #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liron-l
Copy link

@liron-l liron-l commented Oct 23, 2024

scale attribute is optional in schema:

The following attributes are supported:
• scale, a JSON integer representing the scale (optional). If not specified the scale is 0.
• precision, a JSON integer representing the (maximum) precision of decimals stored
in this type (required)

If it's missing from format, code will panic on

panic: interface conversion: interface {} is nil, not float64

Ensure code robustness and verify both values are cast-able to float64.

scale attribute is optional in schema:
```
The following attributes are supported:
• scale, a JSON integer representing the scale (optional). If not specified the scale is 0.
• precision, a JSON integer representing the (maximum) precision of decimals stored
in this type (required)
```
If it's missing from format, code will panic on
```
panic: interface conversion: interface {} is nil, not float64
```
Ensure code robustness and verify both values are cast-able to float64.
@liron-l
Copy link
Author

liron-l commented Oct 23, 2024

@mittal-aashay can you please review?

@liron-l
Copy link
Author

liron-l commented Dec 17, 2024

@mittal-aashay who is maintaining this library?

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.

1 participant