Skip to content

Commit b522254

Browse files
committed
Rename getString() to extractModelNameFromBodyParam()
1 parent 347938e commit b522254

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
774774
for (CodegenOperation op : ops) {
775775
if (patchOnly && "PATCH".equalsIgnoreCase(op.httpMethod)) {
776776
if (op.bodyParam != null && op.bodyParam.dataType != null) {
777-
String modelName = getString(op);
777+
String modelName = extractModelNameFromBodyParam(op);
778778
patchRequestSchemas.add(modelName);
779779
LOGGER.debug("Marked schema '{}' for Optional wrapping (PATCH request body)", modelName);
780780
}
@@ -808,7 +808,7 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
808808
return objs;
809809
}
810810

811-
private static String getString(CodegenOperation op) {
811+
private static String extractModelNameFromBodyParam(CodegenOperation op) {
812812
String modelName = op.bodyParam.dataType;
813813
if (modelName.startsWith("List<") || modelName.startsWith("Map<")) {
814814
int start = modelName.indexOf('<') + 1;

0 commit comments

Comments
 (0)