From 6dfbc58bb8741d58e56977e4da79e5a3e5e42fb4 Mon Sep 17 00:00:00 2001 From: Akhil Nair <36164259+the-akhil-nair@users.noreply.github.com> Date: Tue, 12 Jul 2022 12:56:18 +0530 Subject: [PATCH] [custom_content_issue] (#12836) This PR will fix issue: https://github.com/OpenAPITools/openapi-generator/issues/12835 Signed-off-by: the-akhil-nair --- .../org/openapitools/codegen/examples/ExampleGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java index 2a62a8cae1a2..6471d7f0f051 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java @@ -171,7 +171,7 @@ public class ExampleGenerator { output.add(kv); } } else { - kv.put(EXAMPLE, null); + kv.put(EXAMPLE, "null"); output.add(kv); } }