From 3dc03849e18fa42c9f08979c859ca33f08f11cab Mon Sep 17 00:00:00 2001 From: Aidan Hobson Sayers Date: Sun, 20 Sep 2020 20:57:08 +0100 Subject: [PATCH] Fix stringifying of ~= Fixes #4069 --- .../src/main/java/org/openapitools/codegen/DefaultCodegen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index 2d0a5f6e5b02..943bda4bdc14 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -1558,6 +1558,7 @@ protected void initalizeSpecialCharacterMapping() { specialCharReplacements.put("<=", "Less_Than_Or_Equal_To"); specialCharReplacements.put(">=", "Greater_Than_Or_Equal_To"); specialCharReplacements.put("!=", "Not_Equal"); + specialCharReplacements.put("~=", "Tilde_Equal"); } /**