forked from loafle/openapi-generator-original
map $ to value for parameter/property name
This commit is contained in:
parent
a14015c1c7
commit
56c4de2180
@ -2198,6 +2198,11 @@ public class DefaultCodegen {
|
||||
return "ERROR_UNKNOWN";
|
||||
}
|
||||
|
||||
// if the name is just '$', map it to 'value' for the time being.
|
||||
if ("$".equals(name)) {
|
||||
return "value";
|
||||
}
|
||||
|
||||
// input[] => input
|
||||
name = name.replaceAll("\\[\\]", ""); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user