mirror of
https://github.com/harness/drone.git
synced 2025-05-05 23:42:57 +00:00
fix: duplicate openapi operation id for public access (#2087)
This commit is contained in:
parent
26760cdbd2
commit
7899ebd3a3
@ -254,7 +254,7 @@ func spaceOperations(reflector *openapi3.Reflector) {
|
|||||||
opUpdatePublicAccess := openapi3.Operation{}
|
opUpdatePublicAccess := openapi3.Operation{}
|
||||||
opUpdatePublicAccess.WithTags("space")
|
opUpdatePublicAccess.WithTags("space")
|
||||||
opUpdatePublicAccess.WithMapOfAnything(
|
opUpdatePublicAccess.WithMapOfAnything(
|
||||||
map[string]interface{}{"operationId": "updatePublicAccess"})
|
map[string]interface{}{"operationId": "updateSpacePublicAccess"})
|
||||||
_ = reflector.SetRequest(
|
_ = reflector.SetRequest(
|
||||||
&opUpdatePublicAccess, new(updateSpacePublicAccessRequest), http.MethodPost)
|
&opUpdatePublicAccess, new(updateSpacePublicAccessRequest), http.MethodPost)
|
||||||
_ = reflector.SetJSONResponse(&opUpdatePublicAccess, new(space.SpaceOutput), http.StatusOK)
|
_ = reflector.SetJSONResponse(&opUpdatePublicAccess, new(space.SpaceOutput), http.StatusOK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user