From 1ec244b60f222854bac04ec99e976c4bb1474a8b Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Wed, 1 Dec 2021 12:20:32 +0100 Subject: [PATCH] [lib.constants] route keys are optional, in case of empty routers --- halfapi/lib/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/halfapi/lib/constants.py b/halfapi/lib/constants.py index 07767fe..fb37223 100644 --- a/halfapi/lib/constants.py +++ b/halfapi/lib/constants.py @@ -17,7 +17,7 @@ is_callable_dotted_notation = lambda x: re.match( r'^(([a-zA-Z_])+\.?)*:[a-zA-Z_]+$', 'ab_c.TEST:get') ROUTE_SCHEMA = Schema({ - str: { # path + Optional(str): { # path - Optional when no routes str: { # method 'callable': is_callable_dotted_notation, 'docs': lambda n: True, # Should validate an openAPI spec