File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
modules/openapi-generator/src
main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -1061,6 +1061,8 @@ public void setMapNumberTo(String mapNumberTo) {
1061
1061
}
1062
1062
1063
1063
public String toEnumVariableName (String name , String datatype ) {
1064
+ name = name .replace ("." , "_DOT_" );
1065
+
1064
1066
if ("int" .equals (datatype )) {
1065
1067
return "NUMBER_" + name .replace ("-" , "MINUS_" );
1066
1068
}
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