From f6bd580cdc7145793638766b05d2a504e881a096 Mon Sep 17 00:00:00 2001 From: Adrian Lagartera Date: Fri, 2 Jun 2023 10:14:27 +0200 Subject: [PATCH] #160 Change To Avoid Empty Type When Introduce a Object With String --- .../api/generator/plugin/openapi/utils/MapperContentUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiapi-engine/src/main/java/com/sngular/api/generator/plugin/openapi/utils/MapperContentUtil.java b/multiapi-engine/src/main/java/com/sngular/api/generator/plugin/openapi/utils/MapperContentUtil.java index 762f4ac2..031dac39 100644 --- a/multiapi-engine/src/main/java/com/sngular/api/generator/plugin/openapi/utils/MapperContentUtil.java +++ b/multiapi-engine/src/main/java/com/sngular/api/generator/plugin/openapi/utils/MapperContentUtil.java @@ -601,7 +601,7 @@ private static void setFieldType(final SchemaFieldObject field, final JsonNode v field.setImportClass(getImportClass(typeMap));*/ } else if (ApiTool.isObject(value)) { - var typeObject = ""; + var typeObject = ApiTool.getType(value); if (ApiTool.hasRef(value)) { typeObject = getRef(schema, specFile); }