Skip to content

feat(csvpp): update implementation to draft-mscaldas-csvpp-02#18

Merged
osamingo merged 2 commits intomainfrom
feat/update-to-draft-02
Mar 8, 2026
Merged

feat(csvpp): update implementation to draft-mscaldas-csvpp-02#18
osamingo merged 2 commits intomainfrom
feat/update-to-draft-02

Conversation

@osamingo
Copy link
Owner

@osamingo osamingo commented Mar 8, 2026

Summary

  • Reject empty brackets [] in nested arrays per draft-02 (default tilde applies only to top-level arrays)
  • Update specification references from draft-01 to draft-02
  • Document leaf-only quoting validation as not yet implemented in Conformance Notes

Changes

Code

  • Rename parseArrayDelimiter to parseArrayDelimiterWithDepth with depth parameter
  • Return error when [] is used at depth > 0 (nested level)
  • Update and add test cases for nested array validation

Docs

  • Update doc.go and README.md to reference draft-02
  • Add Conformance Notes section in README.md for leaf-only quoting limitation

Test plan

  • go test ./... passes
  • GOEXPERIMENT=jsonv2 go test ./... passes
  • go vet ./... passes
  • Nested [] correctly rejected at depth > 0
  • Nested [;] (explicit delimiter) works at any depth
  • Top-level [] continues to default to ~
  • All existing golden tests and sub-directory tests unaffected

🤖 Generated with Claude Code

osamingo and others added 2 commits March 9, 2026 01:22
- Rename parseArrayDelimiter to parseArrayDelimiterWithDepth to accept depth parameter
- Return error when empty brackets [] are used at depth > 0 (nested level)
- Per draft-02, default tilde delimiter applies only to top-level arrays
- Update tests to use explicit delimiters for nested arrays
- Add test cases for nested empty bracket rejection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Update doc.go package comment to reference draft-mscaldas-csvpp-02
- Add note about tilde default applying only to top-level arrays
- Update README.md specification link to draft-02
- Add Conformance Notes section documenting leaf-only quoting as not yet implemented
- Clarify default delimiter scope in README.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@osamingo osamingo self-assigned this Mar 8, 2026
@osamingo osamingo marked this pull request as ready for review March 8, 2026 16:23
@osamingo osamingo merged commit b7e0f1b into main Mar 8, 2026
2 checks passed
@osamingo osamingo deleted the feat/update-to-draft-02 branch March 8, 2026 16:24
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