Skip to content

Commit

Permalink
fix(openapi): Rewrite Swagger to OpenAPI annotations (#1192) (#1197)
Browse files Browse the repository at this point in the history
* fix(openapi): Rewrite Swagger to OpenAPI annotations

* chore(deps): bump latest kork version

---------

Co-authored-by: Edgar Garcia <edgar.garcia@harness.io>
(cherry picked from commit f364169)

Co-authored-by: Christos Arvanitis <christos.arvanitis@armory.io>
  • Loading branch information
mergify[bot] and christosarvanitis authored Jan 7, 2025
1 parent db14404 commit be2a82b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includeProviders=file,github,google-groups,ldap
korkVersion=7.245.0
korkVersion=7.247.0
org.gradle.parallel=true
spinnakerGradleVersion=8.32.1
targetJava17=true
Expand Down

0 comments on commit be2a82b

Please sign in to comment.