Skip to content
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

Merged
merged 5 commits into from
Oct 27, 2020

Conversation

tomsmyers
Copy link
Contributor

No description provided.

@tomsmyers tomsmyers requested a review from andymarke October 27, 2020 09:39
@tomsmyers tomsmyers marked this pull request as draft October 27, 2020 11:52
testImplementation 'org.glassfish:javax.el:3.0.0'
testImplementation 'io.swagger.parser.v3:swagger-parser:2.0.20'
Copy link
Contributor Author

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);
Copy link
Contributor Author

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

@tomsmyers tomsmyers marked this pull request as ready for review October 27, 2020 12:53
@tomsmyers tomsmyers changed the title DT-1254 update swagger to v3 DT-1254 update swagger to use OpenAPI Spec v3 Oct 27, 2020
Copy link
Contributor

@andymarke andymarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomsmyers tomsmyers merged commit f5aa55e into main Oct 27, 2020
@tomsmyers tomsmyers deleted the tm-dt-1254-update-swagger-to-v3 branch October 27, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants