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

Pydantic V2 blog #4218

Merged
merged 25 commits into from Jul 10, 2022
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5bdecf9
first draft of pydantic V2 blog
samuelcolvin Jul 6, 2022
5bb1ebb
more blog
samuelcolvin Jul 6, 2022
1296848
blog rendering and formatting
samuelcolvin Jul 6, 2022
1dd4ad7
more section
samuelcolvin Jul 6, 2022
3a77a57
completing conversion table
samuelcolvin Jul 6, 2022
8f6a9ef
prompt build
samuelcolvin Jul 6, 2022
eac0367
reviewing blog post
samuelcolvin Jul 6, 2022
24c4167
more reviewing and extending
samuelcolvin Jul 6, 2022
5bbea1f
recommendations from @Rabscuttler and @PrettyWood
samuelcolvin Jul 7, 2022
f0043eb
add implementation details and more suggestions
samuelcolvin Jul 7, 2022
022a008
comment about breaking changes
samuelcolvin Jul 7, 2022
c35c1df
convert namespae to table, more removals
samuelcolvin Jul 7, 2022
5d9988f
Apply suggestions from code review by @tiangolo
samuelcolvin Jul 7, 2022
ed6d7b1
feedback from @tiangolo's review
samuelcolvin Jul 7, 2022
1326ab5
changes from @adriangb's review
samuelcolvin Jul 7, 2022
83fe30c
Apply suggestions from code review
samuelcolvin Jul 8, 2022
a7bd04b
convert namespace info to psuedo-code
samuelcolvin Jul 8, 2022
be88158
rename property, remove schema_json()
samuelcolvin Jul 8, 2022
c8ba8f1
adding validation context
samuelcolvin Jul 8, 2022
f97b082
remove 'model_schema_json', take 2
samuelcolvin Jul 8, 2022
4acf85d
more tweaks while reviewing
samuelcolvin Jul 8, 2022
80ea6d7
comment about pypy and tagged unions
samuelcolvin Jul 8, 2022
c9c13dc
add thanks :prey:, prepare for release
samuelcolvin Jul 10, 2022
6551432
suggestions from @PrettyWood
samuelcolvin Jul 10, 2022
1808116
suggestions from @PrettyWood, model_dump_json comment
samuelcolvin Jul 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- 1.9.X-fixes
- pydantic-v2-blog
tags:
- '**'

Expand Down
911 changes: 911 additions & 0 deletions docs/blog/pydantic-v2.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/extra/ad.js
Expand Up @@ -21,4 +21,5 @@ function main () {
document.head.appendChild(script)
}

main()
// ads disabled for now
// main()
13 changes: 13 additions & 0 deletions docs/extra/tweaks.css
Expand Up @@ -29,3 +29,16 @@
width: 75%;
border-radius: 5px;
}

/*blog post*/
aside.blog {
display: flex;
align-items: center;
}

aside.blog img {
width: 50px;
height: 50px;
border-radius: 25px;
margin-right: 20px;
}
Binary file added docs/img/samuelcolvin.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/theme/main.html
Expand Up @@ -3,7 +3,7 @@
{% block content %}
{# no ad on the home page #}
{% if not page.is_index %}
<div id="bsa-cpc"></div>
<!-- <div id="bsa-cpc"></div>-->
{% endif %}
{{ super() }}
{% endblock %}
8 changes: 7 additions & 1 deletion mkdocs.yml
Expand Up @@ -55,6 +55,8 @@ nav:
- usage/postponed_annotations.md
- 'Usage with mypy': usage/mypy.md
- 'Usage with devtools': usage/devtools.md
- Blog:
- blog/pydantic-v2.md
- Contributing to pydantic: contributing.md
- 'Mypy plugin': mypy_plugin.md
- 'PyCharm plugin': pycharm_plugin.md
Expand All @@ -64,14 +66,18 @@ nav:
- changelog.md

markdown_extensions:
- tables
- markdown_include.include:
base_path: docs
- toc:
permalink: 🔗
permalink: true
- admonition
- pymdownx.highlight
- pymdownx.extra
- mdx_truly_sane_lists
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg

plugins:
- search
Expand Down