Skip to content
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

[Generator] Improved content type matching #349

Closed

Conversation

czechboy0
Copy link
Contributor

Motivation

Generator side of #315.

Depends on apple/swift-openapi-runtime#65.

Modifications

Adapted the generator for the new content type matching logic, see the issue and the runtime PR for more details.

Result

The generated code uses the new content type matching logic, which works correctly even for content types with parameters and wildcards.

Test Plan

Adapted tests. The core of the matching logic is exhaustively tested in the runtime PR.

@czechboy0
Copy link
Contributor Author

Landed as part of #350

@czechboy0 czechboy0 closed this Oct 30, 2023
@czechboy0 czechboy0 deleted the hd-improved-content-type-matching branch October 30, 2023 16:16
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.

Improve body deserialization when content-type matches multiple keys in the content map
2 participants