Skip to content

Commit f70d8f3

Browse files
committed
make gen
1 parent 501f103 commit f70d8f3

File tree

11 files changed

+75
-13
lines changed

11 files changed

+75
-13
lines changed

coderd/apidoc/docs.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/dbmem/dbmem.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,7 +2906,7 @@ func (q *FakeQuerier) GetTemplateVersionParameters(_ context.Context, templateVe
29062906
return parameters, nil
29072907
}
29082908

2909-
func (q *FakeQuerier) GetTemplateVersionParametersByVersionIDs(ctx context.Context, ids []uuid.UUID) ([]database.TemplateVersionParameter, error) {
2909+
func (q *FakeQuerier) GetTemplateVersionParametersByVersionIDs(_ context.Context, ids []uuid.UUID) ([]database.TemplateVersionParameter, error) {
29102910
q.mutex.RLock()
29112911
defer q.mutex.RUnlock()
29122912

@@ -3973,7 +3973,7 @@ func (q *FakeQuerier) GetWorkspaceBuildParameters(_ context.Context, workspaceBu
39733973
return params, nil
39743974
}
39753975

3976-
func (q *FakeQuerier) GetWorkspaceBuildParametersByBuildIDs(ctx context.Context, ids []uuid.UUID) ([]database.WorkspaceBuildParameter, error) {
3976+
func (q *FakeQuerier) GetWorkspaceBuildParametersByBuildIDs(_ context.Context, ids []uuid.UUID) ([]database.WorkspaceBuildParameter, error) {
39773977
q.mutex.RLock()
39783978
defer q.mutex.RUnlock()
39793979

coderd/workspaces.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (api *API) workspace(rw http.ResponseWriter, r *http.Request) {
8484
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
8585
Message: fmt.Sprintf("Invalid boolean value %q for \"resolve_parameters\" query param.", resolveStr),
8686
Validations: []codersdk.ValidationError{
87-
{Field: "resolve_parameter", Detail: "Must be a valid boolean"},
87+
{Field: "resolve_parameters", Detail: "Must be a valid boolean"},
8888
},
8989
})
9090
return
@@ -1416,9 +1416,12 @@ func convertWorkspace(
14161416
var match *codersdk.WorkspaceBuildParameter
14171417
for _, bp := range buildParameters {
14181418
if bp.Name == tp.Name {
1419+
bp := bp
14191420
match = &bp
1421+
break
14201422
}
14211423
}
1424+
14221425
_, err := resolver.ValidateResolve(tp, match)
14231426
if parameterMismatch = err != nil; parameterMismatch {
14241427
break

codersdk/templateversions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ type TemplateVersionParameter struct {
6868
ValidationMonotonic ValidationMonotonicOrder `json:"validation_monotonic,omitempty" enums:"increasing,decreasing"`
6969
Required bool `json:"required"`
7070
Ephemeral bool `json:"ephemeral"`
71-
TemplateVersionID uuid.UUID `json:"template_version_id"`
71+
TemplateVersionID uuid.UUID `json:"template_version_id" format:"uuid"`
7272
}
7373

7474
// TemplateVersionParameterOption represents a selectable option for a template parameter.

codersdk/workspacebuilds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ type WorkspaceResourceMetadata struct {
9898

9999
// WorkspaceBuildParameter represents a parameter specific for a workspace build.
100100
type WorkspaceBuildParameter struct {
101-
BuildID uuid.UUID `json:"build_id"`
101+
BuildID uuid.UUID `json:"build_id format:"uuid""`
102102
Name string `json:"name"`
103103
Value string `json:"value"`
104104
}

docs/api/builds.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/schemas.md

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/templates.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/workspaces.md

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/typesGenerated.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)