Skip to content

notice(non_ascii_or_non_printable_char): use standard fieldName#2165

Open
c-tonneslan wants to merge 1 commit into
MobilityData:masterfrom
c-tonneslan:fix/non-ascii-fieldname
Open

notice(non_ascii_or_non_printable_char): use standard fieldName#2165
c-tonneslan wants to merge 1 commit into
MobilityData:masterfrom
c-tonneslan:fix/non-ascii-fieldname

Conversation

@c-tonneslan
Copy link
Copy Markdown

The serialized output of NonAsciiOrNonPrintableCharNotice carries the offending column under the key columnName, but every other notice (InvalidCurrencyNotice, InvalidPhoneNumberNotice, etc.) uses fieldName. That forces downstream pipelines to special-case this one rule.

Just renamed the field to match. Callers already pass cellContext.fieldName() into the constructor positionally, so no caller signatures change and no behavior changes — only the JSON key the field reflects to.

Closes #1205.

The serialized output of this notice carries the offending column under
the key 'columnName', but every other notice uses 'fieldName' (see
InvalidCurrencyNotice, InvalidPhoneNumberNotice, etc.). Pipelines
consuming the validator output have to special-case this one validator.

Just match the convention. Callers already pass cellContext.fieldName()
into the constructor, so no behavior changes - only the JSON key the
field reflects to.

Closes MobilityData#1205.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 17, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

Use standard fieldName field for non_ascii_or_non_printable_char validation instead of custom columnName field

2 participants