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

Validation error parsing ProjectDetails() when field is empty #5

Open
xclotet opened this issue May 16, 2023 · 0 comments
Open

Validation error parsing ProjectDetails() when field is empty #5

xclotet opened this issue May 16, 2023 · 0 comments

Comments

@xclotet
Copy link

xclotet commented May 16, 2023

When a Project has an empty field that according to its schema must belong to an Enum (e.g. accMan: Optional[AccManEnum]), due to the matching process it receives "accMan" (key) instead of the None (value) and raises this error:

driganttic/parse.py", line 118, in _refine_projectdetails
    return ProjectDetails(**res)
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for ProjectDetails
accMan
  value is not a valid enumeration member; 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant