Skip to content

Commit

Permalink
Allow additional properties in DashboardParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-billtech committed Jun 19, 2024
1 parent 71d71f0 commit 6bacc4e
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 5 deletions.
14 changes: 13 additions & 1 deletion internal/provider/dashboard_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,19 @@ resource "metabase_dashboard" "%s" {
"sectionId": "string",
"filteringParameters": [
"fb55bed"
]
],
},
{
"name": "Text",
"slug": "text",
"id": "cba622a",
"type": "string/=",
"sectionId": "string",
"values_query_type": "list",
"values_source_config": {
"values": ["foo", "bar"]
},
"values_source_type": "static-list"
}
])
Expand Down
7 changes: 4 additions & 3 deletions metabase-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ info:
description: API for Metabase.

security:
- Session: []
- ApiKey: []
- Session: [ ]
- ApiKey: [ ]

paths:
/card:
Expand Down Expand Up @@ -555,7 +555,7 @@ paths:
post:
operationId: createSession
description: Logs in using a user name (or email address) and a password.
security: []
security: [ ]
requestBody:
required: true
content:
Expand Down Expand Up @@ -982,6 +982,7 @@ components:
DashboardParameter:
type: object
description: A parameter for a dashboard, that the user can tweak.
additionalProperties: true
properties:
id:
type: string
Expand Down
166 changes: 165 additions & 1 deletion metabase/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bacc4e

Please sign in to comment.