Skip to content

Commit 2fbc384

Browse files
author
bnasslahsen
committed
doc update
1 parent 317ef5a commit 2fbc384

File tree

11 files changed

+30
-18
lines changed

11 files changed

+30
-18
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,9 @@ else if (existingOperation != null) {
940940
return operation;
941941
}
942942

943+
/**
944+
* Init open api builder.
945+
*/
943946
protected void initOpenAPIBuilder() {
944947
if (openAPIBuilder.getCachedOpenAPI() != null && springDocConfigProperties.isCacheDisabled()) {
945948
openAPIBuilder = openAPIBuilderObjectFactory.getObject();

springdoc-openapi-common/src/main/java/org/springdoc/core/RequestBodyBuilder.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ private void buildResquestBodyContent(io.swagger.v3.oas.annotations.parameters.R
152152
}
153153
}
154154

155+
/**
156+
* Contains response body schema boolean.
157+
*
158+
* @param content the content
159+
* @return the boolean
160+
*/
155161
private boolean containsResponseBodySchema(Content content) {
156162
return content.entrySet().stream().anyMatch(stringMediaTypeEntry -> stringMediaTypeEntry.getValue().getSchema() != null);
157163
}

springdoc-openapi-common/src/main/java/org/springdoc/core/SwaggerUiConfigParameters.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public class SwaggerUiConfigParameters extends AbstractSwaggerUiConfigProperties
7979
*/
8080
private String uiRootPath;
8181

82+
/**
83+
* The Swagger ui config.
84+
*/
8285
private final SwaggerUiConfigProperties swaggerUiConfig;
8386

8487
/**

springdoc-openapi-common/src/main/java/org/springdoc/core/converters/AdditionalModelsConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class AdditionalModelsConverter implements ModelConverter {
5050
/**
5151
* Replace with class.
5252
*
53-
* @param source the source
53+
* @param source the source
5454
* @param target the target
5555
*/
5656
public static void replaceWithClass(Class source, Class target) {
@@ -60,7 +60,7 @@ public static void replaceWithClass(Class source, Class target) {
6060
/**
6161
* Replace with schema.
6262
*
63-
* @param source the source
63+
* @param source the source
6464
* @param target the target
6565
*/
6666
public static void replaceWithSchema(Class source, Schema target) {
@@ -70,7 +70,7 @@ public static void replaceWithSchema(Class source, Schema target) {
7070
/**
7171
* Gets replacement.
7272
*
73-
* @param clazz the clazz
73+
* @param clazz the clazz
7474
* @return the replacement
7575
*/
7676
public static Class getReplacement(Class clazz) {

springdoc-openapi-common/src/main/java/org/springdoc/core/converters/ConverterUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static void addResponseTypeToIgnore(Class<?> cls) {
8484
/**
8585
* Is response type wrapper boolean.
8686
*
87-
* @param rawClass the raw class
87+
* @param rawClass the raw class
8888
* @return the boolean
8989
*/
9090
public static boolean isResponseTypeWrapper(Class<?> rawClass) {
@@ -94,7 +94,7 @@ public static boolean isResponseTypeWrapper(Class<?> rawClass) {
9494
/**
9595
* Is response type to ignore boolean.
9696
*
97-
* @param rawClass the raw class
97+
* @param rawClass the raw class
9898
* @return the boolean
9999
*/
100100
public static boolean isResponseTypeToIgnore(Class<?> rawClass) {
@@ -126,7 +126,7 @@ public static void removeResponseTypeToIgnore(Class<?> classes) {
126126
/**
127127
* Is flux type wrapper boolean.
128128
*
129-
* @param rawClass the raw class
129+
* @param rawClass the raw class
130130
* @return the boolean
131131
*/
132132
public static boolean isFluxTypeWrapper(Class<?> rawClass) {

springdoc-openapi-common/src/main/java/org/springdoc/core/converters/models/DefaultPageable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class DefaultPageable extends Pageable {
3434
/**
3535
* Instantiates a new Default pageable.
3636
*
37-
* @param page the page
38-
* @param size the size
37+
* @param page the page
38+
* @param size the size
3939
* @param sort the sort
4040
*/
4141
public DefaultPageable(int page, int size, List<String> sort) {

springdoc-openapi-common/src/main/java/org/springdoc/core/converters/models/Pageable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public class Pageable {
6161
/**
6262
* Instantiates a new Pageable.
6363
*
64-
* @param page the page
65-
* @param size the size
64+
* @param page the page
65+
* @param size the size
6666
* @param sort the sort
6767
*/
6868
public Pageable(int page, int size, List<String> sort) {

springdoc-openapi-common/src/main/java/org/springdoc/core/customizers/ParameterCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public interface ParameterCustomizer {
3434
/**
3535
* Customize parameter.
3636
*
37-
* @param parameterModel to be customized
38-
* @param methodParameter original parameter from handler method
37+
* @param parameterModel to be customized
38+
* @param methodParameter original parameter from handler method
3939
* @return customized parameter
4040
*/
4141
Parameter customize(Parameter parameterModel, MethodParameter methodParameter);

springdoc-openapi-common/src/main/java/org/springdoc/core/customizers/PropertyCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public interface PropertyCustomizer {
3434
/**
3535
* Customize schema.
3636
*
37-
* @param property to be customized
38-
* @param type form the model class
37+
* @param property to be customized
38+
* @param type form the model class
3939
* @return customized property
4040
*/
4141
Schema customize(Schema property, AnnotatedType type);

springdoc-openapi-common/src/main/java/org/springdoc/core/fn/AbstractRouterFunctionVisitor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void path(String pattern) {
6464
/**
6565
* Header.
6666
*
67-
* @param name the name
67+
* @param name the name
6868
* @param value the value
6969
*/
7070
public void header(String name, String value) {
@@ -88,7 +88,7 @@ public List<RouterFunctionData> getRouterFunctionDatas() {
8888
/**
8989
* Query param.
9090
*
91-
* @param name the name
91+
* @param name the name
9292
* @param value the value
9393
*/
9494
public void queryParam(String name, String value) {
@@ -107,7 +107,7 @@ public void pathExtension(String extension) {
107107
/**
108108
* Param.
109109
*
110-
* @param name the name
110+
* @param name the name
111111
* @param value the value
112112
*/
113113
public void param(String name, String value) {

springdoc-openapi-common/src/main/java/org/springdoc/core/fn/RouterFunctionData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Map<String, String> getQueryParams() {
9999
/**
100100
* Add query params.
101101
*
102-
* @param name the name
102+
* @param name the name
103103
* @param value the value
104104
*/
105105
public void addQueryParams(String name, String value) {

0 commit comments

Comments
 (0)