Merge pull request #260 from buster-so/dal/null-on-number-separator-style

Fix: spec on metric yml numberSeparatorStyle and enum for the field
This commit is contained in:
dal 2025-05-02 14:17:06 -07:00 committed by GitHub
commit 90c67392b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -445,7 +445,7 @@ definitions:
description: Custom display name for the column
numberSeparatorStyle:
type: string
description: Style for number separators. Your option is ',' or null. Null results in no separator.
description: Style for number separators. Your option is ',' or a null value. Not null wrapped in quotes, a null value.
minimumFractionDigits:
type: integer
description: Minimum number of fraction digits to display

View File

@ -322,6 +322,14 @@ pub struct BaseChartConfig {
pub y2_axis_config: Option<Y2AxisConfig>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub enum NumberSeparatorStyle {
#[serde(rename = ",")]
Comma,
None,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ColumnLabelFormat {