We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c426e3f + 6cd059b commit 75d45a7Copy full SHA for 75d45a7
backend/infrahub/core/models.py
@@ -404,8 +404,8 @@ def has_diff(self) -> bool:
404
class HashableModel(BaseModel):
405
model_config = ConfigDict(extra="forbid")
406
407
- id: str | None = None
408
- state: HashableModelState = HashableModelState.PRESENT
+ id: str | None = Field(default=None)
+ state: HashableModelState = Field(default=HashableModelState.PRESENT)
409
410
_exclude_from_hash: list[str] = []
411
_sort_by: list[str] = []
0 commit comments