---
title: codingPath
framework: swift
role: symbol
role_heading: Instance Property
path: swift/encodingerror/context/codingpath
---

# codingPath

The path of coding keys taken to get to the point of the failing encode call.

## Declaration

```swift
let codingPath: [any CodingKey]
```
