From 93e1d9dd23a791f7dd6a2cf9bce9412684944f72 Mon Sep 17 00:00:00 2001
From: frantuma <frantuma@yahoo.com>
Date: Mon, 26 Aug 2024 21:30:24 +0200
Subject: [PATCH] add schemaType to CodegenProperty

---
 .../io/swagger/codegen/v3/CodegenProperty.java     | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenProperty.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenProperty.java
index f667d845e74..4982bff41b1 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenProperty.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenProperty.java
@@ -9,7 +9,7 @@
 public class CodegenProperty extends CodegenObject implements Cloneable {
     public String baseName, complexType, getter, setter, description, datatype,
           datatypeWithEnum, dataFormat, name, min, max, defaultValue, defaultValueWithParam,
-          baseType, containerType, title;
+          baseType, containerType, title, schemaType;
 
     /** The 'description' string without escape charcters needed by some programming languages/targets */
     public String unescapedDescription;
@@ -248,6 +248,14 @@ public void setMaximum(String maximum) {
         this.maximum = maximum;
     }
 
+    public String getSchemaType() {
+        return schemaType;
+    }
+
+    public void setSchemaType(String schemaType) {
+        this.schemaType = schemaType;
+    }
+
     public boolean getExclusiveMinimum() {
         return exclusiveMinimum;
     }
@@ -386,6 +394,7 @@ public int hashCode()
         result = prime * result + ((_enum == null) ? 0 : _enum.hashCode());
         result = prime * result + ((allowableValues == null) ? 0 : allowableValues.hashCode());
         result = prime * result + ((baseName == null) ? 0 : baseName.hashCode());
+        result = prime * result + ((schemaType == null) ? 0 : schemaType.hashCode());
         result = prime * result + ((baseType == null) ? 0 : baseType.hashCode());
         result = prime * result + ((complexType == null) ? 0 : complexType.hashCode());
         result = prime * result + ((containerType == null) ? 0 : containerType.hashCode());
@@ -438,6 +447,9 @@ public boolean equals(Object obj) {
         if ((this.baseName == null) ? (other.baseName != null) : !this.baseName.equals(other.baseName)) {
             return false;
         }
+        if ((this.schemaType == null) ? (other.schemaType != null) : !this.schemaType.equals(other.schemaType)) {
+            return false;
+        }
         if ((this.complexType == null) ? (other.complexType != null) : !this.complexType.equals(other.complexType)) {
             return false;
         }