Skip to content

[SR-16097] JSONDecoder().superDecoder(keyedBy:) discrepancy #3169

@adam-fowler

Description

@adam-fowler
Previous ID SR-16097
Radar None
Original Reporter @adam-fowler
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 5d1e83f448a534309a0a99cc00746509

Issue Description:

On macOS if you call

JSONDecoder().superDecoder(keyedBy: .key)

and there are no values for that key it still returns a Decoder.

On Linux it will throw a DecodingError.keyNotFound error.

I would expect that both platforms are consistent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions