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: add file handling to URL fields #2800

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

0xDEC0DE
Copy link
Contributor

@0xDEC0DE 0xDEC0DE commented Jan 21, 2025

Requires a modicum of special handling due to hostnames being optional.

Fixes #2249

Copy link
Member

@sloria sloria left a comment

Choose a reason for hiding this comment

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

thanks! just a few nitpicks. also, can you please change the base of your PR to the 3.x-line branch since this is a bugfix?

src/marshmallow/validate.py Outdated Show resolved Hide resolved
tests/test_deserialization.py Outdated Show resolved Hide resolved
src/marshmallow/validate.py Outdated Show resolved Hide resolved
@0xDEC0DE
Copy link
Contributor Author

thanks! just a few nitpicks. also, can you please change the base of your PR to the 3.x-line branch since this is a bugfix?

These are all fair concerns; I must have gotten confused while putting this together.

Regarding the base branch, I was assuming that it would merge to dev and then be backported as needed; is that not how you do things around here?

@sloria
Copy link
Member

sloria commented Jan 21, 2025

we generally go the other way--merge into older release line then forward-port. but tbh it doesn't matter that much. happy to backport this if you don't have time to switch it

@0xDEC0DE 0xDEC0DE changed the base branch from dev to 3.x-line January 21, 2025 21:23
@0xDEC0DE 0xDEC0DE changed the base branch from 3.x-line to dev January 21, 2025 21:26
Requires a modicum of special handling due to hostnames being
optional.

Fixes: Issue marshmallow-code#2249
@0xDEC0DE 0xDEC0DE changed the base branch from dev to 3.x-line January 21, 2025 21:33
@0xDEC0DE 0xDEC0DE requested a review from sloria January 21, 2025 21:35
@0xDEC0DE
Copy link
Contributor Author

Done.

Copy link
Member

@sloria sloria left a comment

Choose a reason for hiding this comment

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

thank you!

@sloria sloria merged commit 76bc28a into marshmallow-code:3.x-line Jan 23, 2025
9 checks passed
@0xDEC0DE 0xDEC0DE deleted the issue/2249 branch January 26, 2025 20:45
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.

fields.Url does not accept file URLs without host
2 participants