forked from loafle/openapi-generator-original
[BUG] KOTLIN URI gerneration for URIs with default value misses the package info and uses wrong quotes. (#11493)
fixed generation of URI with default value
This commit is contained in:
parent
5ee2de95ce
commit
0a48976ccb
@ -1005,7 +1005,7 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
|
||||
}
|
||||
} else if (ModelUtils.isURISchema(p)) {
|
||||
if (p.getDefault() != null) {
|
||||
return "URI.create('" + p.getDefault() + "')";
|
||||
return importMapping.get("URI") + ".create(\"" + p.getDefault() + "\")";
|
||||
}
|
||||
} else if (ModelUtils.isArraySchema(p)) {
|
||||
if (p.getDefault() != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user