Skip to content

Commit 3be00d8

Browse files
committed
Bug fix - issue #14
1 parent a5390e1 commit 3be00d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/net/pwall/json/schema/codegen/CodeGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ class CodeGenerator(
11181118
customClassesByExtension.find { it.match(schema) }?.let {
11191119
return it.applyToTarget(target)
11201120
}
1121-
schema.uri?.resolve("#${schema.location}")?.let { uri ->
1121+
schema.uri?.resolve(schema.location.toURIFragment())?.let { uri ->
11221122
customClassesByURI.find { uri.resolve(it.uri) == uri }?.let {
11231123
return it.applyToTarget(target)
11241124
}

0 commit comments

Comments
 (0)