We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a68c9 commit 87d43ccCopy full SHA for 87d43cc
1 file changed
Sources/JSONAPI/Resource/Resource Object/ResourceObject+Replacing.swift
@@ -15,7 +15,7 @@ public extension JSONAPI.ResourceObject {
15
/// - parameters:
16
/// - replacement: A function that takes the existing `attributes` and returns the replacement.
17
func replacingAttributes(_ replacement: (Description.Attributes) -> Description.Attributes) -> Self {
18
- return Self(id: id,
+ return ResourceObject(id: id,
19
attributes: replacement(attributes),
20
relationships: relationships,
21
meta: meta,
0 commit comments