Skip to content

Commit

Permalink
fix(docs): url schema -> scheme (pydantic#2634)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyWood committed Apr 5, 2021
1 parent 7fb77a7 commit 14f055e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/usage/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,10 @@ _(This script is complete, it should run "as is")_
For URI/URL validation the following types are available:

- `AnyUrl`: any scheme allowed, TLD not required
- `AnyHttpUrl`: schema `http` or `https`, TLD not required
- `HttpUrl`: schema `http` or `https`, TLD required, max length 2083
- `PostgresDsn`: schema `postgres` or `postgresql`, user info required, TLD not required
- `RedisDsn`: schema `redis` or `rediss`, user info not required, tld not required (CHANGED: user info
- `AnyHttpUrl`: scheme `http` or `https`, TLD not required
- `HttpUrl`: scheme `http` or `https`, TLD required, max length 2083
- `PostgresDsn`: scheme `postgres` or `postgresql`, user info required, TLD not required
- `RedisDsn`: scheme `redis` or `rediss`, user info not required, tld not required (CHANGED: user info
not required from **v1.6** onwards), user info may be passed without user part (e.g., `rediss://:pass@localhost`)
- `stricturl`, method with the following keyword arguments:
- `strip_whitespace: bool = True`
Expand All @@ -592,7 +592,7 @@ If you require a custom URI/URL type, it can be created in a similar way to the
Assuming an input URL of `http://samuel:pass@example.com:8000/the/path/?query=here#fragment=is;this=bit`,
the above types export the following properties:

- `scheme`: always set - the url schema (`http` above)
- `scheme`: always set - the url scheme (`http` above)
- `host`: always set - the url host (`example.com` above)
- `host_type`: always set - describes the type of host, either:

Expand Down

0 comments on commit 14f055e

Please sign in to comment.