Spec cleanup - #17
Merged
Merged
Conversation
…pec) - Cover all valid examples: objects, nested, primitive/tabular arrays, delimiters - Cover invalid: length mismatch (detected), delimiter mismatch (gap), multiple root (partial) - Known gaps documented: key folding not expanded, delimiter mismatch not validated, list format unsupported, strict mode root-primitive detection - 498 tests pass
- ToonReaderOptions.ExpandPaths: enables dotted-key expansion (spec §13.4) - ParseObjectLine: detect '.' in keys, split into segments - Read(): emit path segments as sequential PropertyName + StartObject tokens - Quoted keys remain literal (e.g. "user.first-name") - 8-segment max, zero heap allocation - 498 tests pass, spec conformance: key-folding now supported
- ParseArrayHeader: when delim != ',' and field list contains ',', throw - Add ToonUtf8Constants.DelimiterName helper - Update spec tests: delimiter-mismatch now detected - 500 tests pass (498 + 2 skip)
- Add _rootScalarSeen flag, throw ToonReaderException on second bare scalar - Only triggers in Strict mode at root depth - Update spec tests: from KnownGap to validated Invalid_ test - 499 tests pass (497 + 2 skip)
- Bug: path segment emission ran before pending StartObject, overwriting it - Fix: emit pending StartObject first (Phase 0a), then next path segment (Phase 0a.5) - Also fix _pathIdx not advanced after ParseObjectLine emits first segment - key-folding-mixed test now passes (mixed standard nesting + folded keys) - 499 tests pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.