Skip to content

Commit 5632730

Browse files
authored
Merge pull request #19 from mattpolzin/fix-relationship-gen
Fix relationship gen for JSONAPI v5
2 parents accaae5 + 1563b8d commit 5632730

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/JSONAPISwiftGen/Swift Generators/ResourceObjectSwiftGen.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ public struct ResourceObjectSwiftGen: JSONSchemaSwiftGenerator, ResourceTypeSwif
451451
name: oneOrManyName,
452452
specializationReps: [
453453
relationshipTypeRep,
454+
.init(NoIdMetadata.self),
454455
.init(NoMetadata.self),
455456
.init(NoLinks.self)
456457
], optional: isOmittable

0 commit comments

Comments
 (0)