Update README for multi-source rules; Case selector fix; drop .tab - #114
Merged
Conversation
A CSV/pandas flag column with blank cells is read as float, so an integer code 2 arrives as 2.0; str(2.0) == '2.0' missed a when entry of '2'. Normalize an integer-valued float to its int string for both the selector value and when keys, so the flag matches regardless of reader typing. Same class of fix as the enum integer-key handling. +1 test; 199 passing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Tab-separated input/output is selected by .tsv only. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Document the sources (list) rule schema, optional metadata, and
JSON/YAML rules files; show the same rule in both formats
- Add a Multi-Source Rules section with YAML examples for case,
coalesce, and multi-operand combine branches
- Add missing primitives to the reference tables: case, coalesce,
extract_regex, map_each, missing_code, validate_pattern
- Fix enum_to_enum docs to the {from,to} entry-list mapping form
- Document --on-missing default/semantics and --dataset-name
- Remove duplicated normalize_boolean defaults section
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Case(a2.0read from CSV now matcheswhen: ["2"]).tabextension support in the CLI; tab-separated I/O is selected by.tsvonlysources(list) rule schema, optionalmetadata, and JSON/YAML rules files, with the same rule shown in both formatscase,coalesce, and multi-operandcombinebranches (YAML taken verbatim fromRuleSet.saveoutput)case,coalesce,extract_regex,map_each,missing_code,validate_patternenum_to_enumdocs to the{from,to}entry-list mapping form (the old documented dict form no longer deserializes)--on-missingdefault/semantics and--dataset-nameTest plan
pytest tests— 199 passedRuleSet.loadand exercised viarule.transform🤖 Generated with Claude Code