Skip to content

Commit

Permalink
fix(basemodel): allow extra fields in Queenbee objects
Browse files Browse the repository at this point in the history
Now that we use queenee DSL to write the recipes and  the schema is stable we can relax the check and allow additional fields.

This will make it possible to support non-breaking changes for schema on Pollination.
  • Loading branch information
mostaphaRoudsari committed Jan 23, 2021
1 parent a1e4686 commit b5c0515
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions queenbee/base/basemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,3 @@ def ensure_type_match(cls, v):
@validator('annotations', always=True)
def replace_none_value(cls, v):
return {} if not v else v

class Config:
extra = Extra.forbid

0 comments on commit b5c0515

Please sign in to comment.