Skip to content

Conversation

@czechboy0
Copy link
Contributor

Motivation

In the original introduction of server variable support, we didn't properly safe the variable names coming from the OpenAPI document for use as Swift identifiers.

Modifications

Fix that by running the name server variable name, provided in the OpenAPI document, through the function that safes the string for use as a Swift identifier.

Result

Documents that use variable names like protocol compile again.

Test Plan

Adapted the tests.

@czechboy0 czechboy0 merged commit 6057654 into apple:main Oct 30, 2023
@czechboy0 czechboy0 deleted the hd-safe-server-variables branch October 30, 2023 15:45
@czechboy0 czechboy0 added the 🔨 semver/patch No public API change. label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants