From a2bb376279d1715e6220bbbc83012b747510c640 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 26 Jun 2020 17:01:28 +0200 Subject: [PATCH] publish: 5.10.1 --- pyproject.toml | 2 +- royalnet/constellation/api/apistar.py | 2 ++ royalnet/version.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 237a623f..79f5468f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ [tool.poetry] name = "royalnet" - version = "5.10.0" + version = "5.10.1" description = "A multipurpose bot and web framework" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalnet/constellation/api/apistar.py b/royalnet/constellation/api/apistar.py index 5b283a69..2119ea38 100644 --- a/royalnet/constellation/api/apistar.py +++ b/royalnet/constellation/api/apistar.py @@ -127,6 +127,8 @@ class ApiStar(PageStar, ABC): """Generate one or more swagger paths for this ApiStar.""" result = {} for method in self.methods(): + if method not in ["get", "post", "put", "delete"]: + continue result[method.lower()] = self.__swagger_for_a_method(self.__getattribute__(method.lower())) return result diff --git a/royalnet/version.py b/royalnet/version.py index 1d7bdf7b..30bea753 100644 --- a/royalnet/version.py +++ b/royalnet/version.py @@ -1 +1 @@ -semantic = "5.10.0" +semantic = "5.10.1"