Skip to content

SR-12696: Add JSONEncoder.OutputFormatting.withoutEscapingSlashes for Linux #2781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2020

Conversation

spevans
Copy link
Contributor

@spevans spevans commented May 5, 2020

  • This was missing and is required to match Darwin.

@spevans
Copy link
Contributor Author

spevans commented May 5, 2020

@swift-ci test linux

/// for security reasons, allowing outputted JSON to be safely embedded within HTML/XML.
/// In contexts where this escaping is unnecessary, the JSON is known to not be embedded,
/// or is intended only for display, this option avoids this escaping.
@available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a bunch of available(… apple platforms …) tags strewn about SCF, but they're not relevant to SCF. (They really should be @available(swift 5.3…), etc.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I only copied them from the Foundation headers because there are @available annotations on other things. But I agree I dont see the point of them in SCF - even marking them for a specific swift version seems redundant since the code is tied to the specific branch anyway. I will remove these ones.

@millenomi
Copy link
Contributor

@swift-ci please test

@millenomi
Copy link
Contributor

Testing again with the Catalina merge.

… Linux

- This was missing and is required to match Darwin.
@spevans
Copy link
Contributor Author

spevans commented May 9, 2020

@swift-ci test linux

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented May 9, 2020

@swift-ci test linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants