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
Feature/spring5 #2273
Feature/spring5 #2273
Conversation
…y modifications
…encies upgraded to match those in boot
Tests probably failed due to running under Java 7:
|
https://github.com/springfox/springfox/blob/master/circle.yml uses java 7, so that has to be updated too. |
Codecov Report
@@ Coverage Diff @@
## master #2273 +/- ##
============================================
+ Coverage 95.03% 95.08% +0.05%
- Complexity 3057 3101 +44
============================================
Files 340 341 +1
Lines 7809 7828 +19
Branches 596 597 +1
============================================
+ Hits 7421 7443 +22
+ Misses 240 238 -2
+ Partials 148 147 -1 |
@PascalSchumacher Good catch! Thank you! :) |
Thanks for the PR!! just FYI I will hold it in the wings, just a little bit until we get 2.9.0 out of the way (the last supported version using 1.6 jdk) |
Conflicts: gradle/dependencies.gradle
Hi @iles-2e, thanks for the work! |
Thanks @bastelfreak. Sometime in April mid I'd reckon |
👍 |
any ETA for 2.9.0? |
In the next few days |
Hello ! Is this feature being merged in 2.9.0 ? I have tried the build snapshots, but still get the exception. |
@predrag-viceic it will be merged in post 2.9.0 @iles-2e would you mind squashing your merge commits? Let me know if you need help with that. |
@dilipkrish "post 2.9.0" is a bit vaque. With current Spring Boot (Data REST) version the Swagger 2 is and has been completely broken for a while now. As it is now Swagger in completely unusable for modern SW development. |
@mikezerosix thats a pretty broad statement :) Anyways, trying to get a release to maven central and the next release will be focused on spring5/boot2/oas 3.0 compatibility. |
@dilipkrish sorry for the late reply... merged recent changes again and squashed previous merge commits. |
Hello, Any ETA on this feature ? This project is extremely useful and I have some models that are used only in spring data rest.. For now I'm implementing some fake spring mvc services so the models get exported in the documentation, but it would be really cool to have at least the level of features we had with spring 4.. Anyway, thanks a lot for your work ! |
@predrag-viceic sorry its taking a bit of time. Hopefully in the next couple of months |
Hello, I have a question: is it possible to document the association endpoints? ie, right now, They are correctly generated, but with names such as baseentityAssociation, and there is no way to add @ApiOperation comment to these because they do not really exist at the <Crud, pagingAndSorting,etc..>interface level. |
@iles-2e Sorry Im just getting to this PR, I didn't realize there was a PR for upgrading spring data rest. I updated master to support this and also be java 8 source compliant. Since I dont have context into some of your changes, which may include bug fixes as well, would you be able to resolve the merge conflicts. |
Conflicts: gradle/dependencies.gradle springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityAssociationDeleteExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityAssociationGetExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityAssociationItemDeleteExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityAssociationItemGetExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityAssociationSaveExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityAssociationsExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityContext.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityDeleteExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityFindAllExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityFindOneExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntitySaveExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntitySearchExtractor.java springfox-data-rest/src/main/java/springfox/documentation/spring/data/rest/EntityServicesProvider.java springfox-schema/src/main/java/springfox/documentation/schema/property/OptimizedModelPropertiesProvider.java springfox-spring-web/src/main/java/springfox/documentation/spring/web/ControllerNamingUtils.java swagger-contract-tests/build.gradle
@dilipkrish sorry for the late response... I merged the default and resolved the conflicts. My changes were mostly dependency upgrade and introduction of Optional due to Spring Data API change, plus some code duplication removal. Also there is a fix for Jackson upgrade above 2.9 version. They started to pick up setterless properties which in most cases (at least in tests) are false positive so the fix was to revert the behavior. |
Thank you @iles-2e I've merged it in finally! sorry for the long wait! |
What's this PR do/fix?
Updates dependencies to match those in Spring Boot 2
Minimum JDK version is updated to 1.8 (Spring requirement)
Are there unit tests? If not how should this be manually tested?
No new methods were added nor was any method removed, thus no new unit tests. Code fixes were limited to fixing API incompatible changes after the upgrade.
Any background context you want to provide?
My motivation was to make Springfox work in a Spring5 environment. I'm using it in a project running Spring MVC (5) and Spring Data Rest (Kay).
What are the relevant issues?
#1773
#1957