From 2182eb186603ca047326d106c09ccbe1f22834f0 Mon Sep 17 00:00:00 2001 From: Paulo Da Rocha Filho Date: Tue, 23 Jul 2024 14:10:30 -0500 Subject: [PATCH] Fix ExtendedCodegenModel class access modifier to public (#10342) This commit updates the access modifier of the ExtendedCodegenModel class from its default (package-private) to public, allowing it to be accessible from outside its package. --- .../codegen/languages/TypeScriptFetchClientCodegen.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java index dcbf5db9cf16..ae6cbce2f0c7 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java @@ -1045,7 +1045,7 @@ private static String getItemsDataType(CodegenProperty items) { return items.dataType; } - class ExtendedCodegenParameter extends CodegenParameter { + public class ExtendedCodegenParameter extends CodegenParameter { public String dataTypeAlternate; public boolean isUniqueId; // this parameter represents a unique id (x-isUniqueId: true) public List readOnlyVars; // a list of read-only properties @@ -1194,7 +1194,7 @@ private void setReadOnlyVars() { } } - class ExtendedCodegenProperty extends CodegenProperty { + public class ExtendedCodegenProperty extends CodegenProperty { public String dataTypeAlternate; public boolean isEntity; //Is a model containing an "id" property marked as isUniqueId and which matches the 'x-entityId' value. public boolean isUniqueId; // The property represents a unique id (x-isUniqueId: true) @@ -1347,7 +1347,7 @@ public String toString() { } } - class ExtendedCodegenOperation extends CodegenOperation { + public class ExtendedCodegenOperation extends CodegenOperation { boolean hasReturnPassthroughVoid, returnTypeSupportsEntities, returnTypeIsModel, returnTypeIsArray; String returnTypeAlternate, returnBaseTypeAlternate, returnPassthrough; @@ -1464,7 +1464,7 @@ public String toString() { } } - class ExtendedCodegenModel extends CodegenModel { + public class ExtendedCodegenModel extends CodegenModel { @Getter @Setter public Set modelImports = new TreeSet(); public boolean isEntity; // Is a model containing an "id" property marked as isUniqueId