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

TestCaseResultEnum tweak + V1 Pydantic model deprecation note #33

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ gen-examples:

gen-project: $(PYMODEL)
$(RUN) gen-project ${GEN_PARGS} -d $(DEST) $(SOURCE_SCHEMA_PATH) && mv $(DEST)/*.py $(PYMODEL)
$(RUN) gen-pydantic --pydantic_version 2 src/translator_testing_model/schema/translator_testing_model.yaml > $(PYMODEL)/pydanticmodel_v2.py
$(RUN) gen-pydantic --pydantic-version 2 src/translator_testing_model/schema/translator_testing_model.yaml > $(PYMODEL)/pydanticmodel.py


test: test-schema test-python test-examples
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ Capturing these details in metadata that is parsable and usable by test runners
(edit this)
* [datamodel](src/translator_testing_model/datamodel/README.md) -- generated
Python datamodels
* [Pydantic V1](src/translator_testing_model/datamodel/pydanticmodel.py)
* [Pydantic V2](src/translator_testing_model/datamodel/pydanticmodel_v2.py)
* [Pydantic](src/translator_testing_model/datamodel/pydanticmodel.py) - this is a version 2 model.
* [Python Dataclasses](src/translator_testing_model/datamodel/translator_testing_model.py)
* [tests/](tests/test_data.py) - Python tests

Expand Down
Loading
Loading