showingdata commented on PR #4756:
URL: https://github.com/apache/inlong/pull/4756#issuecomment-1166809981
If the interface back end returns LocalDate or LocalDateTime or LocalTime,
use Swagger to display it on the page. Add code .directModelsubstitute
(Localdate.class, String.class), or. DirectModelSubstitute
(LocalTime.Class,String.class) is ok
I was just trying to get Swagger on board
At 2022-06-23 19:21:36, "healzhou" ***@***.***> wrote:
@healchow commented on this pull request.
In
inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/config/Swagger2Config.java:
> @@ -38,6 +42,9 @@ public class Swagger2Config {
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
+ .directModelSubstitute(LocalDate.class, String.class)
Thanks for your contribution.
Firstly, please create an issue here:
https://github.com/apache/inlong/issues/new/choose,
Secondly, could you please explain why add those configs?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]