Skip to content

Commit 8950892

Browse files
Fix ExtendedCodegenModel class access modifier to public (#10342) (#19230)
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. Co-authored-by: Paulo Da Rocha Filho <[email protected]>
1 parent 1c62c03 commit 8950892

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ private static String getItemsDataType(CodegenProperty items) {
10451045
return items.dataType;
10461046
}
10471047

1048-
class ExtendedCodegenParameter extends CodegenParameter {
1048+
public class ExtendedCodegenParameter extends CodegenParameter {
10491049
public String dataTypeAlternate;
10501050
public boolean isUniqueId; // this parameter represents a unique id (x-isUniqueId: true)
10511051
public List<CodegenProperty> readOnlyVars; // a list of read-only properties
@@ -1194,7 +1194,7 @@ private void setReadOnlyVars() {
11941194
}
11951195
}
11961196

1197-
class ExtendedCodegenProperty extends CodegenProperty {
1197+
public class ExtendedCodegenProperty extends CodegenProperty {
11981198
public String dataTypeAlternate;
11991199
public boolean isEntity; //Is a model containing an "id" property marked as isUniqueId and which matches the 'x-entityId' value.
12001200
public boolean isUniqueId; // The property represents a unique id (x-isUniqueId: true)
@@ -1347,7 +1347,7 @@ public String toString() {
13471347
}
13481348
}
13491349

1350-
class ExtendedCodegenOperation extends CodegenOperation {
1350+
public class ExtendedCodegenOperation extends CodegenOperation {
13511351
boolean hasReturnPassthroughVoid, returnTypeSupportsEntities, returnTypeIsModel, returnTypeIsArray;
13521352
String returnTypeAlternate, returnBaseTypeAlternate, returnPassthrough;
13531353

@@ -1464,7 +1464,7 @@ public String toString() {
14641464
}
14651465
}
14661466

1467-
class ExtendedCodegenModel extends CodegenModel {
1467+
public class ExtendedCodegenModel extends CodegenModel {
14681468
@Getter @Setter
14691469
public Set<String> modelImports = new TreeSet<String>();
14701470
public boolean isEntity; // Is a model containing an "id" property marked as isUniqueId

0 commit comments

Comments
 (0)