Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit d5dba3c

Browse files
committed
Changes JsonPathPieceMethod to JsonPathPieceProjevider
1 parent 4ec3364 commit d5dba3c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
import org.openapijsonschematools.codegen.generators.openapimodels.CodegenServer;
5353
import org.openapijsonschematools.codegen.generators.openapimodels.EnumInfo;
5454
import org.openapijsonschematools.codegen.generators.openapimodels.EnumValue;
55-
import org.openapijsonschematools.codegen.generators.openapimodels.JsonPathPieceMethod;
55+
import org.openapijsonschematools.codegen.generators.openapimodels.JsonPathPieceProvider;
5656
import org.openapijsonschematools.codegen.generators.openapimodels.MapBuilder;
5757
import org.openapijsonschematools.codegen.templating.HandlebarsEngineAdapter;
5858
import org.openapijsonschematools.codegen.templating.SupportingFile;
@@ -2422,8 +2422,8 @@ protected List<MapBuilder<?>> getOperationBuilders(String jsonPath, CodegenReque
24222422
int reqPropsSize = 0;
24232423
boolean requestBodyExists = requestBody != null;
24242424
boolean parametersExist = parametersInfo != null;
2425-
List<JsonPathPieceMethod> requiredProperties = new ArrayList<>();
2426-
List<JsonPathPieceMethod> optionalProperties = new ArrayList<>();
2425+
List<JsonPathPieceProvider> requiredProperties = new ArrayList<>();
2426+
List<JsonPathPieceProvider> optionalProperties = new ArrayList<>();
24272427
if (requestBodyExists) {
24282428
if (Boolean.TRUE.equals(requestBody.getSelfOrDeepestRef().required)) {
24292429
qtyBuilders += 1;
@@ -2525,7 +2525,7 @@ protected List<MapBuilder<?>> getOperationBuilders(String jsonPath, CodegenReque
25252525
builders.add(builder);
25262526
}
25272527
if (!optionalProperties.isEmpty()) {
2528-
for (JsonPathPieceMethod property: optionalProperties) {
2528+
for (JsonPathPieceProvider property: optionalProperties) {
25292529
var pair = new MapBuilder.BuilderPropertyPair<>(lastBuilder, property);
25302530
lastBuilder.keyToBuilder.put(property.jsonPathPiece(), pair);
25312531
}

src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* A class to store inline codegenschema definitions
88
*/
9-
public class CodegenList <T> extends AbstractList<T> implements JsonPathPieceMethod {
9+
public class CodegenList <T> extends AbstractList<T> implements JsonPathPieceProvider {
1010
public final List<T> items;
1111
public final CodegenKey jsonPathPiece;
1212
public final String subpackage;

src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenRequestBody.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* A unique parameter is defined by a combination of a name and location.
1313
* Parameters may be located in a path, query, header or cookie.
1414
*/
15-
public class CodegenRequestBody implements JsonPathPieceMethod {
15+
public class CodegenRequestBody implements JsonPathPieceProvider {
1616
public final CodegenText description;
1717
public final Map<String, Object> vendorExtensions;
1818
public final Boolean required;

src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.TreeSet;
3131
import java.util.function.Function;
3232

33-
public class CodegenSchema implements JsonPathPieceMethod {
33+
public class CodegenSchema implements JsonPathPieceProvider {
3434
// 3.0.0
3535
public String title;
3636
public Number multipleOf;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package org.openapijsonschematools.codegen.generators.openapimodels;
22

3-
public interface JsonPathPieceMethod {
3+
public interface JsonPathPieceProvider {
44
CodegenKey jsonPathPiece();
55
}

0 commit comments

Comments
 (0)