mirror of https://github.com/buster-so/buster.git
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:
commit
90c67392b2
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue