If there is no docstring provided for a hook function, eve swagger will crash because of this line
s += '\n '.join(dedent(cb.__doc__).strip().split('\n'))
where dedent cannot handle cb.doc = None
In addition to the fix, I propose here to still document that the hook exists and simply add 'no documentation' as an indicator that there is no further documentation for the function found.
If there is no docstring provided for a hook function, eve swagger will crash because of this line
where dedent cannot handle cb.doc = None
In addition to the fix, I propose here to still document that the hook exists and simply add 'no documentation' as an indicator that there is no further documentation for the function found.