From 9653a23d9f477b391627755a533b2d6e8eae5656 Mon Sep 17 00:00:00 2001 From: Michael Bogdanov Date: Thu, 9 Jan 2025 18:46:42 +0100 Subject: [PATCH] fix(cubesql): add title field to Dimension Metadata (#9084) --- packages/cubejs-api-gateway/openspec.yml | 2 ++ rust/cubesql/cubeclient/src/models/v1_cube_meta_dimension.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/packages/cubejs-api-gateway/openspec.yml b/packages/cubejs-api-gateway/openspec.yml index 9110604d3500f..a971070d7968b 100644 --- a/packages/cubejs-api-gateway/openspec.yml +++ b/packages/cubejs-api-gateway/openspec.yml @@ -125,6 +125,8 @@ components: properties: name: type: "string" + title: + type: "string" description: type: "string" type: diff --git a/rust/cubesql/cubeclient/src/models/v1_cube_meta_dimension.rs b/rust/cubesql/cubeclient/src/models/v1_cube_meta_dimension.rs index 5b84d59776393..3b4ab102c5ca0 100644 --- a/rust/cubesql/cubeclient/src/models/v1_cube_meta_dimension.rs +++ b/rust/cubesql/cubeclient/src/models/v1_cube_meta_dimension.rs @@ -12,6 +12,8 @@ pub struct V1CubeMetaDimension { #[serde(rename = "name")] pub name: String, + #[serde(rename = "title", skip_serializing_if = "Option::is_none")] + pub title: Option, #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, #[serde(rename = "type")] @@ -29,6 +31,7 @@ impl V1CubeMetaDimension { pub fn new(name: String, r#type: String) -> V1CubeMetaDimension { V1CubeMetaDimension { name, + title: None, description: None, r#type, alias_member: None,