Clarify JSON marshalling of `Decimal` values
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Read src/crate/client/http.py at lines 105-106, then compare the Decimal handling shown in the linked meltano-target-cratedb reference and issue #52. Resolve which JSON representation is required for Decimal values and document or test the agreed behavior; the issue is done when that representation is explicit and consistently verified.
Written by the indexing model from the issue text.
Description
About
How to marshal values of Python's Decimal type.
Status quo
Currently, the library is conveying Decimal values as strings.
See also
Others apparently need serialization to float.
if isinstance(obj, Decimal):
return float(obj)
References
- Dominant language
- Python
- Stars
- 85
- Forks
- 34
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from crate/crate-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
crate/crate-python#794 · 2 comments ·
-
enhancement
crate/crate-python#833 · 1 assignee ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
crate/crate-python#826 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
crate/crate-python#820 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
crate/crate-python#729 · 1 comment ·
All issues in crate/crate-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·