There are no tests to ensure that floats fail

Open
#22 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by locating the number serialization and existing test suite in the repository, then trace how numeric values are handled. Add regression coverage for floats and the specified integer range, and run the full test suite to confirm invalid numbers fail without breaking supported canonical JSON.

Written by the indexing model from the issue text.

Description

bug help wanted

As per spec:

Numbers in the JSON must be integers in the range [-(2**53)+1, (2**53)-1].

There isn't any code that checks for floats, either.

Dominant language
Python
Stars
30
Forks
15
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from matrix-org/python-canonicaljson

All issues in matrix-org/python-canonicaljson

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.