From 1a91a07070d7a8fdef8177ba25b8f6c21d6e437f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Herv=C3=A9?= Date: Thu, 26 Nov 2020 18:27:36 +0100 Subject: [PATCH] Properly generate email examples Those are not primitive types, but not model either, they need to be handled explicitely. --- .../codegen/languages/GoClientCodegen.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java index d6cc72383f76..f91fa0f9a9aa 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java @@ -510,6 +510,12 @@ private String constructExampleCode(CodegenParameter codegenParameter, HashMap