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

fix(execute): serialize req.cookies into valid cookie-string #3762

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

char0n
Copy link
Member

@char0n char0n commented Jan 6, 2025

This is part of aligning with OpenAPI 3.0.4 clarifications.

Specifically this PR is aligning implementations around cookies with https://spec.openapis.org/oas/v3.0.4.html#appendix-d-serializing-headers-and-cookies.

swagger-client will now product valid cookies, which can be processed by RFC 6265 parser, cookie-value is percent decoded and can be further processed by RFC 6570 implementation.

@char0n char0n requested review from Copilot and glowcloud January 7, 2025 12:51

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • src/execute/index.js: Evaluated as low risk
@char0n
Copy link
Member Author

char0n commented Jan 7, 2025

Needs rebase before merging

Every Cookie header produced by this library
can now be properly parsed by RFC 6265 parser,
and resulting cookie-value can be further percent
decoded and processed by RFC 6570 implementations
@char0n char0n force-pushed the char0n/cookie-parameters branch from 9dffb5b to 611527a Compare January 7, 2025 13:30
Copy link
Contributor

@glowcloud glowcloud left a comment

Choose a reason for hiding this comment

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

LGTM.

@char0n char0n merged commit 05beeb1 into master Jan 7, 2025
8 checks passed
@char0n char0n deleted the char0n/cookie-parameters branch January 7, 2025 13:41
@swagger-bot
Copy link
Contributor

🎉 This PR is included in version 3.33.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants