llm clarification on metric yml and lock metric yml to an enum

This commit is contained in:
dal 2025-05-02 14:45:27 -06:00
parent 5fd8531ce3
commit 830de45bfa
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 9 additions and 1 deletions

View File

@ -445,7 +445,7 @@ definitions:
description: Custom display name for the column description: Custom display name for the column
numberSeparatorStyle: numberSeparatorStyle:
type: string 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: minimumFractionDigits:
type: integer type: integer
description: Minimum number of fraction digits to display description: Minimum number of fraction digits to display

View File

@ -322,6 +322,14 @@ pub struct BaseChartConfig {
pub y2_axis_config: Option<Y2AxisConfig>, 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)] #[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct ColumnLabelFormat { pub struct ColumnLabelFormat {