File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -387,14 +387,6 @@ private Schema resolveSchema(Schema schema) {
387387 return schema ;
388388 }
389389
390- /**
391- * Optional - type declaration. This is a String which is used by the
392- * templates to instantiate your types. There is typically special handling
393- * for different property types
394- *
395- * @return a string value used as the `dataType` field for model templates,
396- * `returnType` for api templates
397- */
398390 /**
399391 * Check if a schema is a pure map (has additionalProperties but no defined properties).
400392 * Schemas with both properties and additionalProperties should be treated as models, not maps.
@@ -407,6 +399,14 @@ private boolean isPureMapSchema(Schema schema) {
407399 return schema .getProperties () == null || schema .getProperties ().isEmpty ();
408400 }
409401
402+ /**
403+ * Optional - type declaration. This is a String which is used by the
404+ * templates to instantiate your types. There is typically special handling
405+ * for different property types
406+ *
407+ * @return a string value used as the `dataType` field for model templates,
408+ * `returnType` for api templates
409+ */
410410 @ Override
411411 public String getTypeDeclaration (Schema p ) {
412412 // Resolve the schema to check for nested maps/arrays - refs that point to map schemas
You can’t perform that action at this time.
0 commit comments