Skip to content

Commit cb27936

Browse files
committed
Merge remote-tracking branch 'fork/master'
# Conflicts: # springdoc-openapi-data-rest/src/main/java/org/springdoc/core/SpringDocDataRestConfiguration.java # springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app98/SpringDocApp98Test.java
2 parents 1b1d296 + 5bfb04b commit cb27936

File tree

10 files changed

+45
-308
lines changed

10 files changed

+45
-308
lines changed

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,10 @@
7373
<webjars-locator.version>0.38</webjars-locator.version>
7474
<spring-security-oauth2.version>2.3.8.RELEASE</spring-security-oauth2.version>
7575
<classgraph.version>4.8.44</classgraph.version>
76-
<javassist.version>3.26.0-GA</javassist.version>
7776
</properties>
7877

7978
<dependencyManagement>
8079
<dependencies>
81-
<dependency>
82-
<groupId>org.javassist</groupId>
83-
<artifactId>javassist</artifactId>
84-
<version>${javassist.version}</version>
85-
</dependency>
8680
<!-- swagger dependencies -->
8781
<dependency>
8882
<groupId>io.swagger.core.v3</groupId>

springdoc-openapi-common/src/main/java/org/springdoc/ui/AbstractSwaggerIndexTransformer.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* * Copyright 2019-2020 the original author or authors.
4+
* *
5+
* * Licensed under the Apache License, Version 2.0 (the "License");
6+
* * you may not use this file except in compliance with the License.
7+
* * You may obtain a copy of the License at
8+
* *
9+
* * https://www.apache.org/licenses/LICENSE-2.0
10+
* *
11+
* * Unless required by applicable law or agreed to in writing, software
12+
* * distributed under the License is distributed on an "AS IS" BASIS,
13+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* * See the License for the specific language governing permissions and
15+
* * limitations under the License.
16+
*
17+
*/
18+
119
package org.springdoc.ui;
220

321
import java.io.ByteArrayOutputStream;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
*
3+
* * Copyright 2019-2020 the original author or authors.
4+
* *
5+
* * Licensed under the Apache License, Version 2.0 (the "License");
6+
* * you may not use this file except in compliance with the License.
7+
* * You may obtain a copy of the License at
8+
* *
9+
* * https://www.apache.org/licenses/LICENSE-2.0
10+
* *
11+
* * Unless required by applicable law or agreed to in writing, software
12+
* * distributed under the License is distributed on an "AS IS" BASIS,
13+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* * See the License for the specific language governing permissions and
15+
* * limitations under the License.
16+
*
17+
*/
18+
19+
package org.springdoc.ui;
20+
21+
public class SpringDocUIException extends RuntimeException{
22+
23+
public SpringDocUIException(String message, Throwable cause) {
24+
super(message, cause);
25+
}
26+
}

springdoc-openapi-data-rest/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
<groupId>org.springframework.data</groupId>
2020
<artifactId>spring-data-rest-core</artifactId>
2121
</dependency>
22-
<dependency>
23-
<groupId>com.querydsl</groupId>
24-
<artifactId>querydsl-core</artifactId>
25-
<optional>true</optional>
26-
</dependency>
27-
<dependency>
28-
<groupId>org.javassist</groupId>
29-
<artifactId>javassist</artifactId>
30-
<optional>true</optional>
31-
</dependency>
3222
<dependency>
3323
<groupId>org.hibernate.validator</groupId>
3424
<artifactId>hibernate-validator</artifactId>

springdoc-openapi-data-rest/src/main/java/org/springdoc/core/SpringDocDataRestConfiguration.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
import io.swagger.v3.oas.models.media.MapSchema;
3030
import io.swagger.v3.oas.models.media.ObjectSchema;
3131
import io.swagger.v3.oas.models.media.StringSchema;
32-
import javassist.ClassPool;
3332
import org.springdoc.core.converters.Pageable;
34-
import org.springdoc.core.converters.QueryDslPredicateConverter;
3533
import org.springdoc.core.converters.RepresentationModelLinksOASMixin;
3634
import org.springdoc.core.customisers.QuerydslPredicateOperationCustomizer;
3735
import org.springdoc.core.customizers.OpenApiCustomiser;
@@ -41,8 +39,6 @@
4139
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
4240
import org.springframework.context.annotation.Bean;
4341
import org.springframework.context.annotation.Configuration;
44-
import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
45-
import org.springframework.data.querydsl.binding.QuerydslBindingsFactory;
4642
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
4743
import org.springframework.hateoas.Link;
4844
import org.springframework.hateoas.Links;
@@ -61,25 +57,6 @@ public class SpringDocDataRestConfiguration {
6157
.replaceWithClass(org.springframework.data.domain.PageRequest.class, Pageable.class);
6258
}
6359

64-
65-
@Configuration
66-
@ConditionalOnClass(value = {QuerydslBindingsFactory.class, ClassPool.class})
67-
class QuerydslProvider {
68-
69-
@Bean
70-
@ConditionalOnProperty(value = SPRINGDOC_QDSLPREDICATE_MODE,havingValue = "object")
71-
public QueryDslPredicateConverter qdslConverter(Optional<QuerydslBindingsFactory> querydslBindingsFactory) {
72-
return querydslBindingsFactory.isPresent() ? new QueryDslPredicateConverter(querydslBindingsFactory.get()) : null;
73-
}
74-
75-
@Bean
76-
@ConditionalOnMissingBean({ QueryDslPredicateConverter.class})
77-
public QuerydslPredicateOperationCustomizer querydslPredicateOperationCustomizer(QuerydslBindingsFactory querydslBindingsFactory,
78-
LocalVariableTableParameterNameDiscoverer localVariableTableParameterNameDiscoverer) {
79-
return new QuerydslPredicateOperationCustomizer(querydslBindingsFactory, localVariableTableParameterNameDiscoverer);
80-
}
81-
}
82-
8360
@Configuration
8461
@ConditionalOnClass(RepositoryRestConfiguration.class)
8562
class HalProviderConfiguration {

springdoc-openapi-data-rest/src/main/java/org/springdoc/core/converters/QueryDslPredicateConverter.java

Lines changed: 0 additions & 135 deletions
This file was deleted.

springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app98/DummyEntity.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app98/QDummyEntity.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app98/SpringDocApp98Test.java

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)