Skip to content

Commit

Permalink
Give validator patched included a default value to make it really o…
Browse files Browse the repository at this point in the history
…ptional (closes #393)
  • Loading branch information
ml-evs committed Jul 10, 2020
1 parent ec825ef commit cf50cf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimade/validator/validator_model_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class ValidatorLinksResponse(Success):
class ValidatorEntryResponseOne(Success):
meta: ResponseMeta = Field(...)
data: EntryResource = Field(...)
included: Optional[List[Dict[str, Any]]] = Field(...)
included: Optional[List[Dict[str, Any]]] = Field(None)


class ValidatorEntryResponseMany(Success):
meta: ResponseMeta = Field(...)
data: List[EntryResource] = Field(...)
included: Optional[List[Dict[str, Any]]] = Field(...)
included: Optional[List[Dict[str, Any]]] = Field(None)


class ValidatorReferenceResponseOne(ValidatorEntryResponseOne):
Expand Down

0 comments on commit cf50cf3

Please sign in to comment.