Skip to content

Commit

Permalink
adapter.http: skip validation of id_shorts in URLs created by us
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhsjdhjs committed Mar 15, 2024
1 parent 107f158 commit 2e00cff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions basyx/aas/adapter/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 2e00cff

Please sign in to comment.