Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc943a05

Browse files
committed
chore: add json struct tags
This keeps the API (https://coder.com/docs/reference/api/schemas#codersdkpreset) consistent but fixes the generated TSSigned-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent2ab771c commitc943a05

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

‎codersdk/presets.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ import (
1111
)
1212

1313
typePresetstruct {
14-
ID uuid.UUID
15-
Namestring
16-
Parameters []PresetParameter
17-
Defaultbool
14+
ID uuid.UUID`json:"id"`
15+
Namestring`json:"name"`
16+
Parameters []PresetParameter`json:"parameters"`
17+
Defaultbool`json:"default"`
1818
}
1919

2020
typePresetParameterstruct {
21-
Namestring
22-
Valuestring
21+
Namestring`json:"name"`
22+
Valuestring`json:"value"`
2323
}
2424

2525
// TemplateVersionPresets returns the presets associated with a template version.

‎site/src/api/typesGenerated.ts

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp