Skip to content

Commit 611ca55

Browse files
authored
fix: Use "data" scheme when creating parameters from the site (#3732)
Fixes #3691.
1 parent 34d902e commit 611ca55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codersdk/parameters.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ type Parameter struct {
5454
Scope ParameterScope `json:"scope" table:"scope"`
5555
ScopeID uuid.UUID `json:"scope_id" table:"scope id"`
5656
Name string `json:"name" table:"name"`
57-
SourceScheme ParameterSourceScheme `json:"source_scheme" table:"source scheme"`
58-
DestinationScheme ParameterDestinationScheme `json:"destination_scheme" table:"destination scheme"`
57+
SourceScheme ParameterSourceScheme `json:"source_scheme" table:"source scheme" validate:"ne=none"`
58+
DestinationScheme ParameterDestinationScheme `json:"destination_scheme" table:"destination scheme" validate:"ne=none"`
5959
CreatedAt time.Time `json:"created_at" table:"created at"`
6060
UpdatedAt time.Time `json:"updated_at" table:"updated at"`
6161
}

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
7272
createRequests.push({
7373
name: schema.name,
7474
destination_scheme: schema.default_destination_scheme,
75-
source_scheme: schema.default_source_scheme,
75+
source_scheme: "data",
7676
source_value: value,
7777
})
7878
})

0 commit comments

Comments
 (0)