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

Multi host URLs, other URL changes #325

Merged
merged 14 commits into from
Nov 7, 2022
Merged

Multi host URLs, other URL changes #325

merged 14 commits into from
Nov 7, 2022

Conversation

samuelcolvin
Copy link
Member

@samuelcolvin samuelcolvin commented Nov 4, 2022

Follow up on #324 and #317.

Reimplement multi-host URLs, see:

Todo:

  • length checks
  • allowed schema tests

@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2022

Codecov Report

Merging #325 (22696ab) into main (572ba7d) will increase coverage by 0.12%.
The diff coverage is 98.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #325      +/-   ##
==========================================
+ Coverage   97.23%   97.35%   +0.12%     
==========================================
  Files          57       57              
  Lines        6514     6890     +376     
  Branches       45       46       +1     
==========================================
+ Hits         6334     6708     +374     
- Misses        179      182       +3     
+ Partials        1        0       -1     
Impacted Files Coverage Δ
src/input/input_abstract.rs 90.42% <0.00%> (-2.99%) ⬇️
src/errors/types.rs 77.63% <66.66%> (ø)
src/url.rs 98.88% <98.41%> (-0.07%) ⬇️
src/validators/url.rs 99.04% <99.26%> (+2.23%) ⬆️
pydantic_core/core_schema.py 100.00% <100.00%> (+0.47%) ⬆️
src/input/input_python.rs 98.21% <100.00%> (+0.19%) ⬆️
src/lib.rs 100.00% <100.00%> (ø)
src/validators/mod.rs 98.95% <100.00%> (+<0.01%) ⬆️
src/validators/typed_dict.rs 99.05% <0.00%> (+0.01%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 572ba7d...22696ab. Read the comment docs.

@samuelcolvin samuelcolvin changed the title Multi host URLs Multi host URLs, other URL changes Nov 7, 2022
@samuelcolvin samuelcolvin merged commit 463ed7a into main Nov 7, 2022
@samuelcolvin samuelcolvin deleted the multi-host-urls branch November 7, 2022 17:03
samuelcolvin added a commit that referenced this pull request Nov 9, 2022
* adding multi host urls

* linting and more test cases

* tweak unicode_string logic to replace range

* consume leading whitespace on multihost urls

* yet more test cases

* improve coverage

* add vulnerabilties tests

* remove "host_type" from url

* fix unicode positioning with multihost urls

* uprev

* allow default_host, default_port, default_path

* fix schema vs. scheme typo

* empty hosts() if no host

* tweaking url public methods
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.

None yet

2 participants