Skip to content

Allow an empty injected-field value for TEXT columns#247

Merged
larsewi merged 1 commit into
masterfrom
allow-empty-injected-value
Jun 26, 2026
Merged

Allow an empty injected-field value for TEXT columns#247
larsewi merged 1 commit into
masterfrom
allow-empty-injected-value

Conversation

@larsewi

@larsewi larsewi commented Jun 26, 2026

Copy link
Copy Markdown
Owner

An empty string is a valid TEXT value, but config validation rejected it up front. This drops the empty check and lets parse_typed_cell decide -- it accepts empty TEXT and still rejects empty NUMBER/BOOLEAN. Adds unit tests for both.

🤖 Generated with Claude Code

@larsewi larsewi marked this pull request as ready for review June 26, 2026 11:27
@larsewi larsewi force-pushed the allow-empty-injected-value branch from c542c4e to 7cf0815 Compare June 26, 2026 11:31
An empty string is a valid TEXT value, but config validation rejected it
outright. Drop the up-front empty check and let parse_typed_cell decide:
it accepts empty TEXT and still rejects empty NUMBER/BOOLEAN.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@larsewi larsewi force-pushed the allow-empty-injected-value branch from 7cf0815 to 79b866f Compare June 26, 2026 11:37
@larsewi larsewi merged commit 58af5fa into master Jun 26, 2026
7 checks passed
@larsewi larsewi deleted the allow-empty-injected-value branch June 26, 2026 11:57
@larsewi larsewi added the bug Bug fix label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant