Skip to content

Commit 6b8651f

Browse files
authored
Merge pull request #1510 from LeiCraft/fix-swagger-pascalcase
Fix swagger property casing
2 parents ba65daf + 32b601b commit 6b8651f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install and initialize swagger
3636
run: |
3737
go install github.com/swaggo/swag/cmd/swag@latest
38-
swag init -q --markdownFiles docs
38+
swag init -q --propertyStrategy pascalcase --markdownFiles docs
3939
shell: sh
4040

4141
- name: golangci-lint

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ azurite-stop:
7777

7878
swagger: swagger-install
7979
# Generate swagger docs
80-
@PATH=$(BINPATH)/:$(PATH) swag init --parseDependency --parseInternal --markdownFiles docs --generalInfo docs/swagger.conf
80+
@PATH=$(BINPATH)/:$(PATH) swag init --propertyStrategy pascalcase --parseDependency --parseInternal --markdownFiles docs --generalInfo docs/swagger.conf
8181

8282
etcd-install:
8383
# Install etcd
@@ -131,7 +131,7 @@ serve: prepare swagger-install ## Run development server (auto recompiling)
131131
test -f $(BINPATH)/air || go install github.com/air-verse/[email protected]
132132
cp debian/aptly.conf ~/.aptly.conf
133133
sed -i /enable_swagger_endpoint/s/false/true/ ~/.aptly.conf
134-
PATH=$(BINPATH):$$PATH air -build.pre_cmd 'swag init -q --markdownFiles docs --generalInfo docs/swagger.conf' -build.exclude_dir docs,system,debian,pgp/keyrings,pgp/test-bins,completion.d,man,deb/testdata,console,_man,systemd,obj-x86_64-linux-gnu -- api serve -listen 0.0.0.0:3142
134+
PATH=$(BINPATH):$$PATH air -build.pre_cmd 'swag init -q --propertyStrategy pascalcase --markdownFiles docs --generalInfo docs/swagger.conf' -build.exclude_dir docs,system,debian,pgp/keyrings,pgp/test-bins,completion.d,man,deb/testdata,console,_man,systemd,obj-x86_64-linux-gnu -- api serve -listen 0.0.0.0:3142
135135

136136
dpkg: prepare swagger ## Build debian packages
137137
@test -n "$(DEBARCH)" || (echo "please define DEBARCH"; exit 1)

0 commit comments

Comments
 (0)