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.
1 parent f8c62cb commit 6cd059bCopy full SHA for 6cd059b
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