Skip to content

Conversation

euanh
Copy link
Collaborator

@euanh euanh commented Jul 4, 2025

Motivation

JSONEncoder escapes slashes in strings, so slashes in MIME types written into JSON metadata objects will be escaped. Runtimes seem to accept this, but do not do it when producing images themselves.

Modifications

Add .withoutEscapingSlashes to the list of JSONEncoder options.

Result

MIME types will not have escaped slashes.

Test Plan

All existing tests continue to pass.

@euanh euanh added kind/bug Something isn't working semver/patch No public API change. labels Jul 4, 2025
@euanh euanh merged commit 63e03a5 into apple:main Jul 4, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant