Skip to content

Commit

Permalink
Merge pull request #1404 from glass-ships/pydantic-v2
Browse files Browse the repository at this point in the history
add pydantic-v2 model
  • Loading branch information
sierra-moxon authored Oct 20, 2023
2 parents ddc2dc7 + f24b927 commit e7797a8
Show file tree
Hide file tree
Showing 4 changed files with 8,701 additions and 93 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@ gen-golr-views: biolink-model.yaml dir-golr-views env.lock
# ~~~~~~~~~~~~~~~~~~~~
gen-pydantic: biolink-model.yaml dir-pydantic env.lock
poetry run gen-pydantic $< > biolink/pydanticmodel.py
# poetry run gen-pydantic --pydantic_version 1 $< > biolink/pydanticmodel_v1.py


gen-pydantic-v2: biolink-model.yaml dir-pydantic env.lock
poetry run gen-pydantic --pydantic_version 2 $< > biolink/pydanticmodel_v2.py
# poetry run gen-pydantic --pydantic_version 2 $< > biolink/pydanticmodel.py

# ~~~~~~~~~~~~~~~~~~~~
# Graphql
# ~~~~~~~~~~~~~~~~~~~~
Expand Down
Loading

0 comments on commit e7797a8

Please sign in to comment.