From fe4ffe30a1187c6c8f762df3a9d2925d46e5d714 Mon Sep 17 00:00:00 2001 From: Szymon Basan <116343782+sbasan@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:34:51 +0100 Subject: [PATCH] fix: service entry validation (#852) --- ENDPOINTS.md | 2 +- catalystwan/models/policy/policy_definition.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ENDPOINTS.md b/ENDPOINTS.md index ecaa5843..5ce762d7 100644 --- a/ENDPOINTS.md +++ b/ENDPOINTS.md @@ -1,6 +1,6 @@ **THIS FILE WAS AUTO-GENERATED DO NOT EDIT** -Generated for: catalystwan-0.36.0.dev2 +Generated for: catalystwan-0.36.0.dev3 All URIs are relative to */dataservice* HTTP request | Supported Versions | Method | Payload Type | Return Type | Tenancy Mode diff --git a/catalystwan/models/policy/policy_definition.py b/catalystwan/models/policy/policy_definition.py index 3f144ebf..ea536ad4 100644 --- a/catalystwan/models/policy/policy_definition.py +++ b/catalystwan/models/policy/policy_definition.py @@ -929,7 +929,7 @@ class ServiceEntryValue(BaseModel): @model_validator(mode="after") def tloc_xor_tloc_list(self): - check_fields_exclusive(self.__dict__, {"tloc", "tloc_list"}, True) + check_fields_exclusive(self.__dict__, {"tloc", "tloc_list"}, False) return self diff --git a/pyproject.toml b/pyproject.toml index 465c2f89..83fe12a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "catalystwan" -version = "0.36.0dev2" +version = "0.36.0dev3" description = "Cisco Catalyst WAN SDK for Python" authors = ["kagorski "] readme = "README.md"