-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Include extended classes and implemented interfaces for JsonValu…
…e method search
- Loading branch information
Showing
6 changed files
with
59 additions
and
4 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
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
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
9 changes: 9 additions & 0 deletions
9
...s/swagger-core/src/test/java/io/swagger/v3/core/oas/models/InterfaceWithJacksonValue.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,9 @@ | ||
package io.swagger.v3.core.oas.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
public interface InterfaceWithJacksonValue { | ||
|
||
@JsonValue | ||
int getJsonValue(); | ||
} |
18 changes: 18 additions & 0 deletions
18
...swagger-core/src/test/java/io/swagger/v3/core/oas/models/JacksonValueInInterfaceEnum.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,18 @@ | ||
|
||
package io.swagger.v3.core.oas.models; | ||
|
||
public enum JacksonValueInInterfaceEnum implements InterfaceWithJacksonValue { | ||
|
||
TEN(10); | ||
|
||
private final int jsonValue; | ||
|
||
JacksonValueInInterfaceEnum(int jsonValue) { | ||
this.jsonValue = jsonValue; | ||
} | ||
|
||
@Override | ||
public int getJsonValue() { | ||
return jsonValue; | ||
} | ||
} |
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