Skip to content

Commit a763f9c

Browse files
Rename PathSegment to DataConnectPathSegment to match other platforms
1 parent 255d8dd commit a763f9c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/DataConnectError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,6 @@ public struct OperationFailureResponse: Sendable {
247247
// The error message.
248248
public let message: String
249249
// The path to the field to which this error applies.
250-
public let path: [PathSegment]
250+
public let path: [DataConnectPathSegment]
251251
}
252252
}

Sources/DataConnectPathSegment.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
public enum PathSegment: Codable, Equatable, Sendable {
15+
public enum DataConnectPathSegment: Codable, Equatable, Sendable {
1616
case field(String)
1717
case listIndex(Int)
1818
}
1919

2020
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
21-
public extension PathSegment {
21+
public extension DataConnectPathSegment {
2222
init(from decoder: any Decoder) throws {
2323
let container = try decoder.singleValueContainer()
2424

Tests/Integration/PartialErrorsTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class PartialErrorTests: IntegrationTestBase {
4848
throw dcError
4949
}
5050

51-
let foo1Path = [PathSegment.field("person2")]
51+
let foo1Path = [DataConnectPathSegment.field("person2")]
5252
let error = response.errors.first(where: { $0.path == foo1Path })
5353
XCTAssertNotNil(error)
5454

0 commit comments

Comments
 (0)