Skip to content

[pull] main from fern-api:main#794

Merged
pull[bot] merged 2 commits into
code:mainfrom
fern-api:main
Jun 15, 2026
Merged

[pull] main from fern-api:main#794
pull[bot] merged 2 commits into
code:mainfrom
fern-api:main

Conversation

@pull

@pull pull Bot commented Jun 15, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

iamnamananand996 and others added 2 commits June 15, 2026 05:30
)

* fix: correct Swift codegen identifier and string escaping

- Escape enum raw values as raw Swift string content (not JSON-encoded)
- Backtick-escape reserved keywords used as type/enum/case/property names
  and type references (e.g. Type), and sanitize leading-digit identifiers (3D -> _3D)
- Fall back to JSONValue for unregistered string literals instead of crashing

Removes reserved-keywords from swift-sdk seed allowedFailures.

* fix(swift): do not backtick-escape built-in Swift/Foundation type references

The reserved-keyword list includes built-in type names such as Any. Escaping
them as type references (e.g. `Any`) changes their meaning and breaks the
generated code, so skip escaping for known Swift/Foundation type symbols.

* fix(swift): avoid double convert() call in convertObject snippet mapper
@pull pull Bot locked and limited conversation to collaborators Jun 15, 2026
@pull pull Bot added the ⤵️ pull label Jun 15, 2026
@pull pull Bot merged commit fcf0a7b into code:main Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant