mattpolzin / mattpolzin/OpenAPIReflection

Fix encoder date formatting of `.formatted` case on Linux machines

Open
#11 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
18
Forks
2
PR merge metrics
No merged PRs in 30d

Description

As of Swift 5.10+, the Foundation library on Linux does not retain date encoding information for the .formatted case. This means reflections of those encoding strategies are not correctly identified as dates.

Ideally I'd find some workaround because there's no indication of this being fixed soon in the Foundation library itself (broken since Swift 5.10 and still broken in Swift 6.1).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests, so begin by reproducing the .formatted date-encoding reflection behavior on Linux with Swift 5.10 or newer. Trace how OpenAPIReflection identifies date encoding strategies and determine whether the workaround correctly recognizes these cases; done means .formatted strategies are identified as dates on affected Linux versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.