You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 555e797
Browse filesBrowse the repository at this point in the historyBrowse files
error_messages.append(f"Error! Input type `{type(v)}` is not `DestinationCIDRv6`")
77
80
else:
78
81
match+=1
82
+
# validate data type: DestinationPrefixList
83
+
ifnotisinstance(v, DestinationPrefixList):
84
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DestinationPrefixList`")
85
+
else:
86
+
match+=1
79
87
ifmatch==0:
80
88
# no match
81
89
raiseValueError(
82
-
"No match found when setting `actual_instance` in RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6. Details: "
90
+
"No match found when setting `actual_instance` in RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6, DestinationPrefixList. Details: "
"Multiple matches found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6. Details: "
129
+
"Multiple matches found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6, DestinationPrefixList. Details: "
116
130
+", ".join(error_messages)
117
131
)
118
132
elifmatch==0:
119
133
# no match
120
134
raiseValueError(
121
-
"No match found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6. Details: "
135
+
"No match found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6, DestinationPrefixList. Details: "
0 commit comments