Skip to content

Commit 2f0dbf0

Browse files
committed
fix(graphql): Allow nullable source and destination ports
Updates the `source_ports` and `destination_ports` fields to support null values. This ensures compatibility with cases where no ports are specified. Fixes: #249
1 parent e35381d commit 2f0dbf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox_acls/graphql/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ class ACLExtendedRuleType(NetBoxObjectType):
8181

8282
access_list: Annotated["AccessListType", strawberry.lazy("netbox_acls.graphql.types")]
8383
source_prefix: Annotated["PrefixType", strawberry.lazy("ipam.graphql.types")]
84-
source_ports: List[int]
84+
source_ports: List[int] | None
8585
destination_prefix: Annotated["PrefixType", strawberry.lazy("ipam.graphql.types")]
86-
destination_ports: List[int]
86+
destination_ports: List[int] | None

0 commit comments

Comments
 (0)