Skip to content

fix: fixes bugs and spec alignment#52

Merged
shreyasbhat0 merged 3 commits intomainfrom
fixes
Feb 16, 2026
Merged

fix: fixes bugs and spec alignment#52
shreyasbhat0 merged 3 commits intomainfrom
fixes

Conversation

@shreyasbhat0
Copy link
Copy Markdown
Member

@shreyasbhat0 shreyasbhat0 commented Feb 16, 2026

Linked Issue

Closes #

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test coverage improvement

Changes Made

SPEC Compliance

  • This PR implements/fixes spec compliance
  • Spec section(s) affected:
  • Spec version:

Testing

  • All existing tests pass
  • Added new tests for changes
  • Tests cover edge cases and spec compliance

Pre-submission Checklist

  • My code follows the project's coding standards
  • I have run code formatting/linting tools
  • I have added tests that prove my fix/feature works
  • New and existing tests pass locally
  • I have updated documentation if needed
  • I have reviewed the TOON specification for relevant sections

Breaking Changes

  • No breaking changes
  • Breaking changes (describe migration path below)

Additional Context

Update spec submodule to latest and fix decoder to treat tokens like
"-05" and "-007" as strings rather than parsing them as numbers. The
spec now explicitly requires forbidden leading zeros in the integer
part to apply to negative numbers as well.
The encoder wrote tabular rows at the wrong depth when the array was a
non-first field of a list-item object, and the decoder dropped sibling
fields after parsing such arrays because the tabular parser already
consumed the trailing newline.
@shreyasbhat0 shreyasbhat0 merged commit 2bbf4d8 into main Feb 16, 2026
3 checks passed
@shreyasbhat0 shreyasbhat0 deleted the fixes branch February 16, 2026 06:56
@github-actions github-actions bot mentioned this pull request Feb 16, 2026
@shreyasbhat0
Copy link
Copy Markdown
Member Author

#50 closed

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