Andrew M. White
7af90a8d6c
Fix url fragment without query ( #2169 )
...
* fix: parse URL fragment without query string (#2168 )
* Add changes file
2021-01-01 14:22:15 +00:00
Mykola Solodukha
aacf592040
Add rediss (Redis over SSL) protocol to RedisDsn ( #1911 )
...
* Add `rediss` (Redis over SSL) protocol to `RedisDsn`
* Update docs
* Update changes history
* Fix typo in `changes/1911-TrDex.md`
Co-authored-by: PrettyWood <em.jolibois@gmail.com >
* Bump black from 19.10b0 to 20.8b1 (#1909 )
* Bump black from 19.10b0 to 20.8b1
Bumps [black](https://github.com/psf/black ) from 19.10b0 to 20.8b1.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/master/CHANGES.md )
- [Commits](https://github.com/psf/black/commits )
Signed-off-by: dependabot[bot] <support@github.com >
* fix: run `make format`
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: PrettyWood <em.jolibois@gmail.com >
* Allow URLs without `user` part
Refer to #1877
* Update docs
* Allow Redis DSN with schema only
Refer to https://github.com/samuelcolvin/pydantic/pull/1911#issuecomment-722335692
Refer to https://www.iana.org/assignments/uri-schemes/prov/redis
* Fix lint error
* Fix lint error
* Set `parts: Dict[str, Optional[str]]` instead of `Dict[str, str]`
* Fix linting
* More verbose default values set in `RedisDsn.validate_parts()`
* Fix linting 2
* Fix typo in docs
* Add a note in the changelog
* Add test case for URL without `user` part
* change port in test
Co-authored-by: PrettyWood <em.jolibois@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2020-12-30 18:20:51 +00:00
flapili
dac6764575
Url port check ( #1678 )
...
* add url port check
* add change
* Update pydantic/networks.py
fix typo
Co-authored-by: PrettyWood <em.jolibois@gmail.com >
* Update 1654-flapili.md
* Update 1654-flapili.md
Co-authored-by: PrettyWood <em.jolibois@gmail.com >
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
2020-07-03 20:56:36 +01:00
Samuel Colvin
f219501ff0
tests for missing user
2020-06-29 22:30:04 +01:00
Samuel Colvin
d122b1dbdc
remove RedisDsn.user_required = True ( #1658 )
...
* remove RedisDsn.user_required = True
* update docs
2020-06-26 12:02:57 +01:00
Stephen Bunn
1eeb225c67
Fix NameEmail equality comparison ( #1527 )
...
* Adding appropriate __eq__ method for NameEmail
- Introducing new test assertions for NameEmail
Signed-off-by: Stephen Bunn <stephen@bunn.io >
* Adding change doc for NameEmail.__eq__
Signed-off-by: Stephen Bunn <stephen@bunn.io >
* Update pydantic/networks.py
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
* Update tests/test_networks.py
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
* Fixing indentation issue left over from suggestion
Signed-off-by: Stephen Bunn <stephen@bunn.io >
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
2020-05-19 08:59:33 +01:00
Samuel Colvin
c8906ce810
uprev all test and docs dependencies ( #1528 )
2020-05-18 21:31:23 +01:00
James Curtin
b7c0dd5b16
Support unicode and punycode when validating TLDs ( #1183 )
...
* Support unicode and punycode when validating TLDs
* Consolidate HTTP internationalization logic
2020-01-21 16:55:11 +00:00
Samuel Colvin
e2533e04c9
regex for username and password in URLs ( #1175 )
...
* regex for username and password in URLs, fix #1115
* fix linting
2020-01-17 17:13:55 +00:00
Samuel Colvin
fa8aa12a3d
correct url_regex, fix #1142 ( #1148 )
2020-01-08 10:21:44 +00:00
Koudai Aono
2b47932f8e
Fix EmailStr for Cython ( #1126 )
...
* Fix EmailStr for Cython
* add a change document.
* Fix NameEmail
* Update changes/1126-koxudaxi.md
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Update pydantic/networks.py
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Update changes/1126-koxudaxi.md
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Update pydantic/networks.py
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
2019-12-26 18:15:59 +00:00
Samuel Colvin
cb262daddd
fix ValidationError.json() ( #922 )
2019-10-23 10:27:55 +01:00
Samuel Colvin
c3098a30cf
Consistent __repr__ and __str__ methods for all types ( #884 )
...
* Consistent __repr__ and __str__ methods for all types
* add change description
* devtools integration and feedback on repr methods
* fix Color repr
* tests for truncate
* add devtools section to docs
* tests for devtools
* ValidationError inheriting from Representation
* fix imports
* tweaks
* tweak docs
* exec_examples.py integration with __repr__ changes
2019-10-14 17:37:04 +01:00
Samuel Colvin
8f29837703
small bits of cleanup ( #851 )
...
* small tweaks to main.py
* add changes
* correct ModelMetaclass name
* fix password and user on AnyUrl
2019-10-01 17:08:30 +01:00
Henrik Lindgren
7704ff857e
Local part of email is now case-sensitive after validation per RFC 5321. ( #801 )
...
* Test local and global part of EmailStr validation return values
* Make local part of email case-sensitive per RFC 5321
* Update changes/798-henriklindgren.rst
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* remove case-sensitive specific tests from EmailStr
2019-09-10 11:16:44 +01:00
Samuel Colvin
79017111aa
new URL parsing ( #755 )
...
* new URL parsing, fix #603 , fix #541
* AnyUrl parts and more tests
* more coverage and db DSNs
* remove DSN methods
* tests for urlstr
* remove debug
* make AnyStr a subtype of str
* fix with cython
* rearranging networking code
* allowing international domains, cleanup
* support international domains
* better URL builder
* allow underscores in subdomains and domains
* tests for json and schema, max length
* urlstr > stricturl
* updating docs
* tweak docs examples
* tweak docs
2019-09-02 11:37:33 +01:00