Add parse_array primitive and document CSV array workflows#98
Merged
matthewhorridge merged 3 commits intomainfrom Feb 18, 2026
Merged
Add parse_array primitive and document CSV array workflows#98matthewhorridge merged 3 commits intomainfrom
matthewhorridge merged 3 commits intomainfrom
Conversation
- add ParseArray primitive with JSON default and delimiter parsing (pipe/newline)\n- register parse_array in primitive vocabulary/imports and rule deserialization\n- align parse_array boolean coercion with NormalizeBoolean behavior\n- add primitive and rule integration tests\n- update demo primitives_ui rules to parse week_hours before reduce
- add parse_array to primitives reference and examples\n- document parse_array->reduce chain for serialized arrays\n- include delimiter examples for pipe and newline
- update test_cli_missing_behavior to assert SystemExit code 2\n- align test with cli.main contract that uses parser.error for user-facing failures
Contributor
Author
|
Addressed failing CI test in .\n\nRoot cause: reports missing-source errors via (), which raises . The test was incorrectly expecting .\n\nFix pushed in commit :\n- now asserts with exit code .\n\nValidation:\n- ....................................................................... [100%] |
Contributor
Author
|
Addressed the failing CI test in Root cause:
Fix pushed in commit
Validation:
|
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.
Summary
parse_arrayprimitive withjson(default) anddelimiterformats|) and newline (\n)parse_arrayboolean coercion withnormalize_booleanbehaviorparse_arrayinto primitive vocabulary/imports and harmonization rule deserializationparse_arraybeforereduceforweek_hoursparse_arrayandparse_array -> reduceusage in READMETests
venv/bin/pytest -q tests/test_primitives_serialization.py tests/test_rule_serialization.pyRelated