-
Notifications
You must be signed in to change notification settings - Fork 115
update to pydantic 2 #625
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
Merged
Merged
update to pydantic 2 #625
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
013caee
update to pydantic 2
thomas-maschler 669587e
update changelog
thomas-maschler a168498
typo
thomas-maschler cd9f75e
add CI for Python 3.12
thomas-maschler 781c46e
drop support for python 3.8
thomas-maschler ce7f6e8
update python version for docs
thomas-maschler 19cce99
update python for docs docker container
thomas-maschler 36044d6
update python version in dockerfile
thomas-maschler 9210501
handle post requests
thomas-maschler 1fa87b7
test wrapper
thomas-maschler 653f3a6
pass through StacBaseModel
thomas-maschler 6727568
keep py38
thomas-maschler e01e95a
change install order
thomas-maschler db5cfb6
lint
thomas-maschler 02f2702
revert back to >=3.8 in setup.py
thomas-maschler 8118f10
add switch to use either TypeDict or StacPydantic Response
thomas-maschler b52f216
lint and format with ruff
thomas-maschler 0f7d8c9
Merge branch 'main' into pydantic2
thomas-maschler f2f9374
remove comment
thomas-maschler 273f819
update change log
thomas-maschler dc67a4d
use Optional not | None
thomas-maschler 7208dd7
use Optional not | None
thomas-maschler e24351a
update dependencies
thomas-maschler 5bdd615
hard code versions and address other comments
thomas-maschler eea9c82
remove response_model module, update openapi schema
thomas-maschler d0762eb
add responses to transactions
thomas-maschler 9d9ab57
do not wrap response into response_class
vincentsarago 68aff85
Merge pull request #2 from vincentsarago/patch/avoid-wrapping-response
thomas-maschler 3d946f6
fix tests
thomas-maschler c9e6f0d
update changelog, remove redundant variable
thomas-maschler 1652232
update from main
vincentsarago aa1ab5e
lint bench
vincentsarago 8ad9f97
reorder installs
vincentsarago bf01ad9
do not push benchmark if not in stac-utils/stac-fastapi repo
vincentsarago 6b0949a
Add text about response validation to readme.
thomas-maschler 9b14b04
merge main
thomas-maschler 6f1b478
fix warning
thomas-maschler 0bb2019
merge main
thomas-maschler 6d943aa
update from main
vincentsarago d46d287
remove versions
vincentsarago 641614a
fix
vincentsarago 3b50a6d
Update README.md
jonhealy1 37594ec
update changelog
vincentsarago 83d19f8
Merge branch 'pydantic2' of https://github.com/thomas-maschler/stac-f…
vincentsarago File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,6 +129,7 @@ docs/api/* | |
|
|
||
| # Virtualenv | ||
| venv | ||
| .venv/ | ||
|
|
||
| # IDE | ||
| .vscode | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| repos: | ||
| - repo: https://github.com/charliermarsh/ruff-pre-commit | ||
| rev: "v0.0.267" | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: "v0.2.2" | ||
| hooks: | ||
| - id: ruff | ||
| args: [--fix, --exit-non-zero-on-fix] | ||
| - repo: https://github.com/psf/black | ||
| rev: 23.3.0 | ||
| hooks: | ||
| - id: black | ||
| - id: ruff-format |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| """Application settings.""" | ||
|
|
||
| import enum | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| """Api middleware.""" | ||
|
|
||
| import re | ||
| import typing | ||
| from http.client import HTTP_PORT, HTTPS_PORT | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.