-
-
Notifications
You must be signed in to change notification settings - Fork 70
chore(gom-25): integrate swagger #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
34d438b
02b71c1
21bc6c8
203a3f0
9046a47
3003bdc
7e07d3f
7dfe5d4
4c508d3
5469119
3a2bf31
09fe4fb
28107f9
e65dfb5
daab2b0
15c9524
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| .PHONY: build run clean tidy test test-e2e test-integration test-contract test-all lint lint-fix record-api | ||
| .PHONY: build run clean tidy test test-e2e test-integration test-contract test-all lint lint-fix record-api swagger | ||
|
|
||
| # Get version info | ||
| VERSION ?= $(shell git describe --tags --always --dirty) | ||
|
|
@@ -54,6 +54,12 @@ record-api: | |
| -output=tests/contract/testdata/openai/models.json | ||
| @echo "Done! Golden files saved to tests/contract/testdata/" | ||
|
|
||
| swagger: | ||
| go run github.com/swaggo/swag/cmd/swag init --generalInfo main.go \ | ||
| --dir cmd/gomodel,internal \ | ||
| --output cmd/gomodel/docs \ | ||
| --outputTypes go,json | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great, that we have a make command! @coderabbitai What do you think about adding the whol
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query: 💡 Result: How
|
||
| # Run linter | ||
| lint: | ||
| golangci-lint run ./... | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.