From 2e00cff7566e43cffcfe47ce3a267189e69dd6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Fri, 15 Mar 2024 19:14:46 +0100 Subject: [PATCH] adapter.http: skip validation of id_shorts in URLs created by us --- basyx/aas/adapter/http.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/basyx/aas/adapter/http.py b/basyx/aas/adapter/http.py index e55fddff3..d5ad6e7fd 100644 --- a/basyx/aas/adapter/http.py +++ b/basyx/aas/adapter/http.py @@ -396,9 +396,6 @@ def validate_id_short(cls, id_short: str) -> bool: return True def to_url(self, value: List[str]) -> str: - for id_short in value: - if not self.validate_id_short(id_short): - raise ValueError(f"{id_short} is not a valid id_short!") return super().to_url(self.id_short_sep.join(id_short for id_short in value)) def to_python(self, value: str) -> List[str]: