Skip to content

Commit fdc1f94

Browse files
authored
Merge pull request #6525 from opsmill/pog-attribute-parameter-config
Replace deprecated config parameter
2 parents d09a457 + 940e625 commit fdc1f94

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backend/infrahub/core/schema/attribute_parameters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
from typing import Self
55

6-
from pydantic import Field, model_validator
6+
from pydantic import ConfigDict, Field, model_validator
77

88
from infrahub.core.constants.schema import UpdateSupport
99
from infrahub.core.models import HashableModel
@@ -20,8 +20,7 @@ def get_attribute_parameters_class_for_kind(kind: str) -> type[AttributeParamete
2020

2121

2222
class AttributeParameters(HashableModel):
23-
class Config:
24-
extra = "forbid"
23+
model_config = ConfigDict(extra="forbid")
2524

2625

2726
class TextAttributeParameters(AttributeParameters):

0 commit comments

Comments
 (0)