-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenAPI auto-tag processing to account for SR 2.2.0 changes
Save method hashes based on resource implementation classes and both the concrete and (potentially) abstract methods.
- Loading branch information
Showing
4 changed files
with
66 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...oyment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagFetchableResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkus.smallrye.openapi.test.jaxrs; | ||
|
||
import java.util.List; | ||
|
||
import javax.ws.rs.GET; | ||
|
||
public abstract class AutoTagFetchableResource<T> implements AbstractAutoTagResource<T> { | ||
|
||
@GET | ||
abstract List<T> getAll(); | ||
|
||
@Override | ||
public T getById(long id) { | ||
return null; | ||
} | ||
} |
15 changes: 12 additions & 3 deletions
15
...napi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
package io.quarkus.smallrye.openapi.test.jaxrs; | ||
|
||
import java.util.List; | ||
|
||
import javax.ws.rs.Path; | ||
|
||
@Path("/address") | ||
public class AutoTagResource implements AbstractAutoTagResource<String> { | ||
@Path("/tagged") | ||
public class AutoTagResource extends AutoTagFetchableResource<String> { | ||
|
||
@Override | ||
public String getById(long id) { | ||
return "Disney Land, Gate " + id; | ||
} | ||
} | ||
|
||
@Override | ||
public List<String> getAll() { | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters