-
Notifications
You must be signed in to change notification settings - Fork 6
[#38] code migration to use pydantic v2 #51
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
Open
pkdash
wants to merge
36
commits into
develop
Choose a base branch
from
38-update-to-pydantic-v2
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
08e8c93
[#38] initial migration to use pydantic v2
pkdash dca1631
[#38] pinning dependencies
pkdash 00be384
[#38] updating with develop
pkdash d997914
[#38] merge branch 'develop' of https://github.com/I-GUIDE/catalogapi…
pkdash d205fdd
[#38] leaving a note Rocketry is not compatible with pydantic v2 for …
pkdash a0938f0
[#38] using a custom annotated type for url to string conversion
pkdash e76482a
[#38] setting default for optional model field
pkdash cba00f9
[#38] replacing rocketry (not compatible with pydantic v2) module wit…
pkdash ccb107e
[#38] replacing default_factory with default
pkdash c68dd11
[#38] replacing anyOf for type with type as string in schema generation
pkdash f993e4b
[#38] updating tests to check for field None value
pkdash a5ca4d4
[#38] updating default for optional list type model fields
pkdash eaacbde
[#38] updated json schema for dataset
pkdash 3d9deff
Merge branch 'develop' of https://github.com/I-GUIDE/catalogapi into …
pkdash d455438
[#38] more customization of schema generation
pkdash 4bad6ef
[#38] updated schema.json file
pkdash bd69aac
[#38] removing deprecated Config class
pkdash d761cae
[#38] updating beanie version to remove pydantic v2 warnings
pkdash 0f61ba7
[#38] custom serialization of url field of Submission model
pkdash 67298c5
[#38] custom serialization of field of type HttpUrl
pkdash c4c22db
[#38] moving extra keys of Field to json_schema_extra
pkdash 486dba1
[#38] making SearchQuery model fields optional
pkdash 71f7550
[#38] removing the key 'default' from generated schema if value is nu…
pkdash 43d2d0a
[#38] updated json schema
pkdash 513c88e
[#38] updating with develop
pkdash bf0b427
[#38] adding requests module to requirements
pkdash 807eff1
[#38] re-generating the schema.json file
pkdash a5f0dae
[#38] updating tests for the schema changes
pkdash f5cd531
[#38] moving json schema customization to base class
pkdash a552324
[#38] replacing pydantic data type HttpUrl with custom data type Http…
pkdash 337eae2
[#38] latest version of beanie fixes the extra field 'revision_id' issue
pkdash adc37da
[#38] removing duplicate make command
pkdash e2120ba
[#38] using custom type HttpUrlStr
pkdash 43896a6
[#38] removing unused function
pkdash 798a1b9
[#38] upgrading to latest version of FastAPI
pkdash 18d3608
[#38] updating with develop and making pydantic v2 specific code changes
pkdash 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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting that I have since learned that if we leave the env_file Config out then it just reads environment variables which eases deployments. This comment is not relevant to these changes, just making a note here.