File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,14 @@ trap cleanup EXIT
17
17
18
18
log " Use temporary file: ${API_MD_TMP_FILE} "
19
19
20
- # Check if swagger.json already exists to avoid regeneration issues
21
- if [ ! -f " ${PROJECT_ROOT} /coderd/apidoc/swagger.json" ]; then
22
- log " Generating swagger documentation..."
23
- pushd " ${PROJECT_ROOT} /coderd"
24
- go run github.com/swaggo/swag/cmd/swag@v1.8.9 init \\
25
- --generalInfo=" coderd.go" \\
26
- --dir=" .,../codersdk,../enterprise/coderd,../enterprise/wsproxy/wsproxysdk" \\
27
- --output=" ./apidoc" \\
28
- --outputTypes=" go,json" \\
29
- --parseDependency=true
30
- popd
31
- else
32
- log " swagger.json already exists, skipping generation"
33
- fi
20
+ pushd " ${PROJECT_ROOT} /coderd"
21
+ go run github.com/swaggo/swag/cmd/swag@v1.8.9 init \\
22
+ --generalInfo=" coderd.go" \\
23
+ --dir=" .,../codersdk,../enterprise/coderd,../enterprise/wsproxy/wsproxysdk" \\
24
+ --output=" ./apidoc" \\
25
+ --outputTypes=" go,json" \\
26
+ --parseDependency=true
27
+ popd
34
28
35
29
pushd " ${APIDOCGEN_DIR} "
36
30
You can’t perform that action at this time.
0 commit comments