bossenti commented on code in PR #2871:
URL: https://github.com/apache/streampipes/pull/2871#discussion_r1604535712


##########
streampipes-client-python/streampipes/endpoint/api/version.py:
##########
@@ -109,11 +109,20 @@ def get(self, identifier: str, **kwargs) -> Resource:
         identifier: str
             Not supported by this endpoint, is set to an empty string.
 
+        Raises
+        ------
+        ValueError
+            Non-empty 'identifier' is not supported by this endpoint. Please 
set 'identifier' to an empty string.
+
         Returns
         -------
         versions: Version
             The specified resource as an instance of the corresponding model 
class([Version][streampipes.model.resource.Version]).  # noqa: 501
         """
+        if identifier:
+            raise ValueError(
+                "Non-empty 'identifier' is not supported by this endpoint. 
Please set 'identifier' to an empty string."

Review Comment:
   ```suggestion
                   "Non-empty 'identifier' is not supported by this endpoint. 
Please set 'identifier' to an empty string or 'None'."
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to