Skip to content

Commit

Permalink
we use go generate cmd/server/swagger.go to validate
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Dec 24, 2023
1 parent a38a51d commit 9cf9025
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 0 additions & 10 deletions .woodpecker/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ steps:
- path: *when_path
- event: [cron, manual]

lint swagger:
image: codeberg.org/6543/docker-images/check-jsonschema
commands: >
check-jsonschema
--schemafile https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v2.0/schema.json
docs/swagger.json
when:
- path: *when_path
- event: [cron, manual]

deploy-preview:
image: docker.io/woodpeckerci/plugin-surge-preview:1.2.2
settings:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ generate: generate-swagger ## Run all code generations

generate-swagger: install-tools ## Run swagger code generation
swag init -g server/api/ -g cmd/server/swagger.go --outputTypes go -output cmd/server/docs
go generate cmd/server/swagger.go

generate-license-header: install-tools
addlicense -c "Woodpecker Authors" -ignore "vendor/**" **/*.go
Expand Down

0 comments on commit 9cf9025

Please sign in to comment.