Created
November 15, 2021 11:59
-
-
Save codemation/8dfe4e38470737949a01e82763ac3d58 to your computer and use it in GitHub Desktop.
pydbantic_app_8.log
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
Traceback (most recent call last): | |
File "/home/josh/python/pydbantic/docs/medium/application/app.py", line 27, in <module> | |
asyncio.run(main()) | |
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run | |
return loop.run_until_complete(main) | |
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete | |
return future.result() | |
File "/home/josh/python/pydbantic/docs/medium/application/app.py", line 23, in main | |
all_employees = await Employee.all() | |
File "/home/josh/python/pydbantic/docs/medium/med-env/lib/python3.9/site-packages/pydbantic/core.py", line 401, in all | |
return await cls.select('*') | |
File "/home/josh/python/pydbantic/docs/medium/med-env/lib/python3.9/site-packages/pydbantic/core.py", line 395, in select | |
cls(**values) | |
File "pydantic/main.py", line 406, in pydantic.main.BaseModel.__init__ | |
pydantic.error_wrappers.ValidationError: 1 validation error for Employee | |
position | |
none is not an allowed value (type=type_error.none.not_allowed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment