File tree Expand file tree Collapse file tree
modules/openapi-generator/src
main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1061,6 +1061,8 @@ public void setMapNumberTo(String mapNumberTo) {
10611061 }
10621062
10631063 public String toEnumVariableName (String name , String datatype ) {
1064+ name = name .replace ("." , "_DOT_" );
1065+
10641066 if ("int" .equals (datatype )) {
10651067 return "NUMBER_" + name .replace ("-" , "MINUS_" );
10661068 }
Original file line number Diff line number Diff line change 1+ openapi : 3.0.0
2+ info :
3+ title : Sample API
4+ description : API description in Markdown.
5+ version : 1.0.0
6+ paths :
7+ /pony-sizes :
8+ get :
9+ summary : Returns all pony sizes.
10+ description : Optional extended description in Markdown.
11+ responses :
12+ 200 :
13+ description : OK
14+ content :
15+ application/json :
16+ schema :
17+ type : array
18+ items :
19+ $ref : ' #/components/schemas/PonySizes'
20+ components :
21+ schemas :
22+ PonySizes :
23+ type : object
24+ properties :
25+ type :
26+ $ref : ' #/components/schemas/Type'
27+ Type :
28+ type : float
29+ enum :
30+ - 2.0
31+ - 1.0
32+ - 0.5
33+ - 0.25
You can’t perform that action at this time.
0 commit comments