Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,30 @@ public Map<String, Object> postProcessModelsEnum(Map<String, Object> objs) {
updateCodegenPropertyEnum(var);
}

for (CodegenProperty var : cm.allVars) {
updateCodegenPropertyEnum(var);
}

for (CodegenProperty var : cm.requiredVars) {
updateCodegenPropertyEnum(var);
}

for (CodegenProperty var : cm.optionalVars) {
updateCodegenPropertyEnum(var);
}

for (CodegenProperty var : cm.parentVars) {
updateCodegenPropertyEnum(var);
}

for (CodegenProperty var : cm.readOnlyVars) {
updateCodegenPropertyEnum(var);
}

for (CodegenProperty var : cm.readWriteVars) {
updateCodegenPropertyEnum(var);
}

}
return objs;
}
Expand Down Expand Up @@ -2301,6 +2325,8 @@ protected void updateDataTypeWithEnumForMap(CodegenProperty property) {
if (property.defaultValue != null) {
property.defaultValue = property.defaultValue.replace(", " + property.items.baseType, ", " + toEnumName(property.items));
}

updateCodegenPropertyEnum(property);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/jersey1/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/jersey2-java6/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/jersey2-java8/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/jersey2/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/okhttp-gson/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/rest-assured/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/resteasy/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/resttemplate/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/retrofit2-play24/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/retrofit2-play25/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/retrofit2-play26/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/retrofit2/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/retrofit2rx/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/retrofit2rx2/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/vertx/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



2 changes: 2 additions & 0 deletions samples/client/petstore/java/webclient/docs/MapTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
## Enum: Map&lt;String, InnerEnum&gt;
Name | Value
---- | -----
UPPER | &quot;UPPER&quot;
LOWER | &quot;lower&quot;



Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ public function getModelName()
return self::$openAPIModelName;
}

const MAP_OF_ENUM_STRING_UPPER = 'UPPER';
const MAP_OF_ENUM_STRING_LOWER = 'lower';



Expand All @@ -184,7 +186,8 @@ public function getModelName()
public function getMapOfEnumStringAllowableValues()
{
return [

self::MAP_OF_ENUM_STRING_UPPER,
self::MAP_OF_ENUM_STRING_LOWER,
];
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.4-SNAPSHOT
4.0.0-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ public function getModelName()
return self::$openAPIModelName;
}

const MAP_OF_ENUM_STRING_UPPER = 'UPPER';
const MAP_OF_ENUM_STRING_LOWER = 'lower';



Expand All @@ -184,7 +186,8 @@ public function getModelName()
public function getMapOfEnumStringAllowableValues()
{
return [

self::MAP_OF_ENUM_STRING_UPPER,
self::MAP_OF_ENUM_STRING_LOWER,
];
}

Expand Down