You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Runtime] Include partial errors in oneOf/anyOf decoding errors (#66)
[Runtime] Include partial errors in oneOf/anyOf decoding errors
### Motivation
The runtime changes to address apple/swift-openapi-generator#275.
This makes debugging of decoding of oneOf/anyOf much easier, as the individual errors aren't dropped on the floor anymore.
### Modifications
Added SPI that allows the generated code to collect and report partial errors when a oneOf/anyOf fails to decode (that includes trying multiple subschemas, which themselves emit errors when they're not the right match).
### Result
Easier debugging of oneOf/anyOf decoding issues.
### Test Plan
Tested manually as part of the generator changes, we don't generally test exact error strings.
Reviewed by: simonjbeaumont
Builds:
✔︎ pull request validation (5.10) - Build finished.
✔︎ pull request validation (5.8) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (docc test) - Build finished.
✔︎ pull request validation (integration test) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
✖︎ pull request validation (api breakage) - Build finished.
#66
0 commit comments