mirror of https://github.com/harness/drone.git
fix: duplicate openapi operation id for public access (#2087)
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…
Reference in New Issue