-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DT-1254 update swagger to use OpenAPI Spec v3 #748
Conversation
…ofjustice/prison-api into tm-dt-1254-update-swagger-to-v3
testImplementation 'org.glassfish:javax.el:3.0.0' | ||
testImplementation 'io.swagger.parser.v3:swagger-parser:2.0.20' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required to downgrade due to json deserialization bug introduced here swagger-api/swagger-parser#1400 and discussed here javalin/javalin#1079 and here swagger-api/swagger-core#3637
@@ -67,7 +65,8 @@ public Docket docket() { | |||
.directModelSubstitute(LocalDateTime.class, Date.class) | |||
.directModelSubstitute(LocalDate.class, java.sql.Date.class) | |||
.securityContexts(Lists.newArrayList(securityContext())) | |||
.securitySchemes(Lists.newArrayList(apiKey)); | |||
.securitySchemes(Lists.newArrayList(apiKey)) | |||
.forCodeGeneration(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required to stop classes using inheritance being named with invalid characters
e.g. before we would have Page«PrisonerInformation»
after we have PageOfPrisonerInformation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.