Skip to content

Commit

Permalink
fix(openapi): Rewrite Swagger to OpenAPI annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
christosarvanitis committed Nov 26, 2024
1 parent db14404 commit b20b2ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fiat-web/fiat-web.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
implementation "io.spinnaker.kork:kork-plugins"
implementation "io.spinnaker.kork:kork-web"
implementation "io.spinnaker.kork:kork-retrofit"
implementation "io.swagger:swagger-annotations"
implementation "io.swagger.core.v3:swagger-annotations"
implementation "net.logstash.logback:logstash-logback-encoder"

runtimeOnly "io.spinnaker.kork:kork-runtime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import com.netflix.spinnaker.kork.web.exceptions.InvalidRequestException;
import com.netflix.spinnaker.kork.web.exceptions.NotFoundException;
import com.netflix.spinnaker.security.AuthenticatedRequest;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import java.io.IOException;
import java.util.*;
import java.util.function.Supplier;
Expand Down Expand Up @@ -77,8 +77,8 @@ public AuthorizeController(
this.getUserPermissionCounterId = registry.createId("fiat.getUserPermission");
}

@ApiOperation(
value =
@Operation(
summary =
"Used mostly for testing. Not really any real value to the rest of "
+ "the system. Disabled by default.")
@RequestMapping(method = RequestMethod.GET)
Expand Down

0 comments on commit b20b2ce

Please sign in to comment.