[lib.constants] route keys are optional, in case of empty routers
This commit is contained in:
parent
53ecbb58fc
commit
1ec244b60f
@ -17,7 +17,7 @@ is_callable_dotted_notation = lambda x: re.match(
|
|||||||
r'^(([a-zA-Z_])+\.?)*:[a-zA-Z_]+$', 'ab_c.TEST:get')
|
r'^(([a-zA-Z_])+\.?)*:[a-zA-Z_]+$', 'ab_c.TEST:get')
|
||||||
|
|
||||||
ROUTE_SCHEMA = Schema({
|
ROUTE_SCHEMA = Schema({
|
||||||
str: { # path
|
Optional(str): { # path - Optional when no routes
|
||||||
str: { # method
|
str: { # method
|
||||||
'callable': is_callable_dotted_notation,
|
'callable': is_callable_dotted_notation,
|
||||||
'docs': lambda n: True, # Should validate an openAPI spec
|
'docs': lambda n: True, # Should validate an openAPI spec
|
||||||
|
Loading…
Reference in New Issue
Block a user