Skip to content

Commit 4585ce4

Browse files
authored
Merge pull request #132 from opsmill/pog-add-order-weight
Add order_weight
2 parents 6a1da83 + 932f9e1 commit 4585ce4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infrahub_sdk/schema.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ class AttributeSchema(BaseModel):
327327
max_length: Optional[int] = None
328328
min_length: Optional[int] = None
329329
regex: Optional[str] = None
330+
order_weight: Optional[int] = None
330331

331332

332333
class RelationshipSchema(BaseModel):
@@ -344,6 +345,7 @@ class RelationshipSchema(BaseModel):
344345
optional: bool = True
345346
read_only: bool = False
346347
filters: list[FilterSchema] = Field(default_factory=list)
348+
order_weight: Optional[int] = None
347349

348350

349351
class BaseNodeSchema(BaseModel):

0 commit comments

Comments
 (0)