Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/cubejs-api-gateway/openspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ components:
required:
- name
- title
- interval
properties:
name:
type: "string"
title:
type: "string"
interval:
type: "string"
sql:
type: "string"
offset:
type: "string"
origin:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@ pub struct V1CubeMetaDimensionGranularity {
pub name: String,
#[serde(rename = "title")]
pub title: String,
#[serde(rename = "interval")]
pub interval: String,
#[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
pub interval: Option<String>,
#[serde(rename = "sql", skip_serializing_if = "Option::is_none")]
pub sql: Option<String>,
#[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
pub offset: Option<String>,
#[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
pub origin: Option<String>,
}

impl V1CubeMetaDimensionGranularity {
pub fn new(name: String, title: String, interval: String) -> V1CubeMetaDimensionGranularity {
pub fn new(name: String, title: String) -> V1CubeMetaDimensionGranularity {
V1CubeMetaDimensionGranularity {
name,
title,
interval,
interval: None,
sql: None,
offset: None,
origin: None,
}
Expand Down
Loading