resources¶
EntryResourceCreate pydantic-model ¶
Generic model for creating new entry resources in the MongoDB
id: str pydantic-field ¶
Config ¶
__init__(self, **data) special ¶
Remove root_validator check_illegal_attributes_fields
Source code in optimade_gateway/models/resources.py
def __init__(self, **data: Any) -> None:
"""Remove root_validator `check_illegal_attributes_fields`"""
self._remove_pre_root_validators()
super().__init__(**data)