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

v1 #893

Merged
merged 14 commits into from
Oct 20, 2023
Merged

v1 #893

merged 14 commits into from
Oct 20, 2023

Conversation

dantownsend
Copy link
Member

No description provided.

dantownsend and others added 14 commits August 2, 2023 22:03
* pydantic v2 support

based off master...sinisaos:piccolo:pydanticV2_test by @sinisaos

* add more schema attributes for Piccolo Admin compatibility

* use newer fastapi in asgi template

* fix indentation in docstring

* update docs

* add docs for v1

* fixed typo in version number, `0.108` -> `0.118`

* fix link

* use `model_validate_json` instead of `parse_raw`

* fix deprecation warnings for `dict` method
* Merge pull request from GHSA-h7cm-mrvq-wcfr

Co-authored-by: skelmis <[email protected]>

* bumped version

* fix typo

* Support Postgres 16 (#886)

* support Postgres 16

* remove Postgres 10

* simplify `create_pydantic_model`

I didn't like how it was overriding `format` on the JSON schema.

All of the custom values we add to the JSON schema are now namespaced under the `extra` key. It makes things much less confusing and more maintainable.

* fix tests

---------

Co-authored-by: skelmis <[email protected]>
@dantownsend dantownsend added the enhancement New feature or request label Oct 20, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2023

Codecov Report

Merging #893 (5480a96) into master (d1f6c35) will decrease coverage by 0.02%.
The diff coverage is 96.29%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master     #893      +/-   ##
==========================================
- Coverage   92.12%   92.11%   -0.02%     
==========================================
  Files         107      107              
  Lines        8118     8113       -5     
==========================================
- Hits         7479     7473       -6     
- Misses        639      640       +1     
Files Coverage Δ
piccolo/__init__.py 100.00% <100.00%> (ø)
piccolo/apps/asgi/commands/new.py 73.43% <ø> (ø)
piccolo/apps/fixtures/commands/dump.py 51.11% <100.00%> (ø)
piccolo/apps/fixtures/commands/load.py 93.47% <100.00%> (ø)
piccolo/utils/pydantic.py 96.87% <95.83%> (-1.15%) ⬇️

@dantownsend dantownsend merged commit 9e5fae9 into master Oct 20, 2023
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants