Skip to content

feat: add keep_values_formatting for values of parameter#145

Merged
vittorio-reinaudo merged 1 commit into
mainfrom
feat/keep-values-formatting
Jul 20, 2026
Merged

feat: add keep_values_formatting for values of parameter#145
vittorio-reinaudo merged 1 commit into
mainfrom
feat/keep-values-formatting

Conversation

@vittorio-reinaudo

Copy link
Copy Markdown
Contributor

Description

Parameters that define a fixed set of allowed values currently normalize each value's display label to sentence case, forcing the first letter to uppercase and the rest to lowercase. This is applied automatically, so labels like "iPhone", "USB-C" or "già pagato" are rewritten to "Iphone", "Usb-c" and "Già pagato", with no way to keep the label exactly as authored.

This PR introduces a new boolean option, keep_values_formatting, on parameters that support values. When enabled, the value labels are stored and returned exactly as provided, preserving the original casing and formatting.

Behavior

  • keep_values_formatting: false (default): unchanged from today — value labels are normalized to sentence case. Existing parameters keep behaving exactly as before. (NO REGRESSION)
  • keep_values_formatting: true: value labels are preserved verbatim, with no case transformation.

The option is fully backward compatible: parameters that don't set it fall back to the current default behavior.

@vittorio-reinaudo
vittorio-reinaudo requested a review from a team as a code owner July 16, 2026 16:57
@vittorio-reinaudo
vittorio-reinaudo merged commit 80413c6 into main Jul 20, 2026
4 checks passed
@vittorio-reinaudo
vittorio-reinaudo deleted the feat/keep-values-formatting branch July 20, 2026 18:44
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.

1 participant