Skip to content

Commit

Permalink
chore: update swag to v1.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev committed Jul 27, 2023
1 parent 9593fab commit 2f99928
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 71 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lint:
install-tools:
$(GOINSTALL) gotest.tools/[email protected]
$(GOINSTALL) github.com/vektra/mockery/[email protected]
$(GOINSTALL) github.com/swaggo/swag/cmd/swag@v1.7.0
$(GOINSTALL) github.com/swaggo/swag/cmd/swag@v1.16.1
@which golangci-lint > /dev/null 2>&1 || (curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $(GOBINPATH) v1.46.2)

go.mod: FORCE
Expand Down
77 changes: 18 additions & 59 deletions web/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions web/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,7 @@
"handlers.RunScannerResponse": {
"type": "object",
"properties": {
"result": {
"type": "object"
}
"result": {}
}
},
"handlers.Scanner": {
Expand Down Expand Up @@ -729,9 +727,7 @@
"message": {
"type": "string"
},
"result": {
"type": "object"
},
"result": {},
"success": {
"type": "boolean"
}
Expand Down
9 changes: 4 additions & 5 deletions web/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ definitions:
type: object
handlers.RunScannerResponse:
properties:
result:
type: object
result: {}
type: object
handlers.Scanner:
properties:
Expand Down Expand Up @@ -171,8 +170,7 @@ definitions:
type: string
message:
type: string
result:
type: object
result: {}
success:
type: boolean
type: object
Expand Down Expand Up @@ -427,7 +425,8 @@ paths:
post:
consumes:
- application/json
description: This route performs a dry run with the given phone number. This doesn't perform an actual scan.
description: This route performs a dry run with the given phone number. This
doesn't perform an actual scan.
operationId: DryRunScanner
parameters:
- description: Request body
Expand Down
1 change: 1 addition & 0 deletions web/server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Package web includes code for the web server of PhoneInfoga
//
//go:generate swag init -g ./server.go --parseDependency
package web

Expand Down

0 comments on commit 2f99928

Please sign in to comment.