Skip to content

Add a JsonConverter for LevelValue - #10

Merged
nblumhardt merged 2 commits into
datalust:devfrom
nblumhardt-ro:foolproof-level-conversion
Sep 3, 2026
Merged

Add a JsonConverter for LevelValue#10
nblumhardt merged 2 commits into
datalust:devfrom
nblumhardt-ro:foolproof-level-conversion

Conversation

@nblumhardt-ro

Copy link
Copy Markdown

Protects against leakage of the internal LevelValue type at API boundaries. Old case-by-case protections are still maintained, but the converter makes it harder to get things observably wrong. Before this change, seqcli search --column @Level (not yet in upstream seqcli) renders {"Name": ...} style output. After, it's just plain-old strings.

Nicholas Blumhardt added 2 commits September 3, 2026 12:45
… leakage of the internal `LevelValue` type at API boundaries. Old case-by-case protections are still maintained, but the converter makes it harder to get things observably wrong. Before this change, `seqcli search --column @Level` (not yet in upstream `seqcli`) renders `{"Name": ...}` style output. After, it's just plain-old strings.

Assisted-by: Claude:claude-fable-5-1
@nblumhardt-ro nblumhardt-ro reopened this Sep 3, 2026
@nblumhardt
nblumhardt merged commit a785812 into datalust:dev Sep 3, 2026
2 checks passed
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.

3 participants