Skip to content

Commit c41cce0

Browse files
committed
hedge bets against colliding with JSONAPI types when names are a bit close (like 'metadata')
1 parent 954b978 commit c41cce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JSONAPISwiftGen/Swift Generators/StructureSwiftGen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public struct StructureSwiftGen: JSONSchemaSwiftGenerator {
9090
let dependencies = try schemas
9191
.enumerated()
9292
.map { (idx, schema) -> (String, [Decl]) in
93-
let name = typeCased("\(name)\(idx)")
93+
let name = typeCased("Poly\(name)\(idx)")
9494
return (
9595
name,
9696
try declsForType(

0 commit comments

Comments
 (0)