From 932f9e1cb3b0477953a78d4aaf0ebfe2cbda8c98 Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Sun, 10 Nov 2024 20:06:00 +0100 Subject: [PATCH] Add order_weight --- infrahub_sdk/schema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrahub_sdk/schema.py b/infrahub_sdk/schema.py index 051d5f86..c411140d 100644 --- a/infrahub_sdk/schema.py +++ b/infrahub_sdk/schema.py @@ -291,6 +291,7 @@ class AttributeSchema(BaseModel): max_length: Optional[int] = None min_length: Optional[int] = None regex: Optional[str] = None + order_weight: Optional[int] = None class RelationshipSchema(BaseModel): @@ -308,6 +309,7 @@ class RelationshipSchema(BaseModel): optional: bool = True read_only: bool = False filters: list[FilterSchema] = Field(default_factory=list) + order_weight: Optional[int] = None class BaseNodeSchema(BaseModel):