We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee2de9 commit 0a48976Copy full SHA for 0a48976
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java
@@ -1005,7 +1005,7 @@ public String toDefaultValue(Schema schema) {
1005
}
1006
} else if (ModelUtils.isURISchema(p)) {
1007
if (p.getDefault() != null) {
1008
- return "URI.create('" + p.getDefault() + "')";
+ return importMapping.get("URI") + ".create(\"" + p.getDefault() + "\")";
1009
1010
} else if (ModelUtils.isArraySchema(p)) {
1011
0 commit comments