Skip to content

Commit

Permalink
fix(cubesql): add title field to Dimension Metadata (#9084)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer authored Jan 9, 2025
1 parent 7e66334 commit 9653a23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cubejs-api-gateway/openspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ components:
properties:
name:
type: "string"
title:
type: "string"
description:
type: "string"
type:
Expand Down
3 changes: 3 additions & 0 deletions rust/cubesql/cubeclient/src/models/v1_cube_meta_dimension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "type")]
Expand All @@ -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,
Expand Down

0 comments on commit 9653a23

Please sign in to comment.