Skip to content

fix: the pubkey-lookup swagger should be multi param #31

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

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const docTemplate = `{
"items": {
"type": "string"
},
"collectionFormat": "csv",
"collectionFormat": "multi",
"description": "List of BTC addresses to look up (up to 10), currently only supports Taproot and Native Segwit addresses",
"name": "address",
"in": "query",
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"items": {
"type": "string"
},
"collectionFormat": "csv",
"collectionFormat": "multi",
"description": "List of BTC addresses to look up (up to 10), currently only supports Taproot and Native Segwit addresses",
"name": "address",
"in": "query",
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ paths:
get:
description: Retrieves public keys for the given BTC addresses. This endpoint
parameters:
- collectionFormat: csv
- collectionFormat: multi
description: List of BTC addresses to look up (up to 10), currently only supports
Taproot and Native Segwit addresses
in: query
Expand Down
2 changes: 1 addition & 1 deletion internal/api/handlers/pubkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
// the system. If an address has no associated delegation, it will not be
// included in the response. Supports both Taproot and Native Segwit addresses.
// @Produce json
// @Param address query []string true "List of BTC addresses to look up (up to 10), currently only supports Taproot and Native Segwit addresses"
// @Param address query []string true "List of BTC addresses to look up (up to 10), currently only supports Taproot and Native Segwit addresses" collectionFormat(multi)
// @Success 200 {object} Result[map[string]string] "A map of BTC addresses to their corresponding public keys (only addresses with delegations are returned)"
// @Failure 400 {object} types.Error "Bad Request: Invalid input parameters"
// @Failure 500 {object} types.Error "Internal Server Error"
Expand Down
Loading