Releases: upsight/doctor
Releases · upsight/doctor
v1.2.2
v1.2.1 (2017-07-07)
- Fixed sphinx build error encountered on Sphinx v1.6.1+ when checking if the http domain has already been added.
v1.2.0
v1.1.4
- Updates doctor to not parse JSON bodies on GET/DELETE requests, and instead try to parse them from the query string or form parameters.
- Fixes a bug introduced in v1.1.3. This bug would only occur if a logic function was decorated and that decorator passed a positional argument to the logic function. Doctor would think the positional argument passed by the decorator was a required request parameter even if it was specified to be omitted in the router using omit_args.
v1.1.3
- Added new InternalError class to represent non-doctor internal errors.
- Updated sphinx pin version to be minimum 1.5.4 and added new
env
kwarg to make_field and make_xref. - Fixed bug where extra parameters passed on json requests would cause a
TypeError
if the logic function used a decorator. - Made sure to make decorators a set when applying them to a logic function when creating routes. This is to prevent a decorator from wrapping a function twice if it's defined at the logic level and handler level when creating routes.
v1.1.2
If the logic function was decorated and the decorator contained arguments that could also be functions we would not undecorate the function properly. An example:
def foo(params):
return params
@audit('thing', user_func=foo)
def get_thing(auth, something=None):
return 'thing'
Before the fix if you did something like the above you would get a response that said: "'params' is a required property"
. So doctor was using the function foo to generate the schema, rather than get_thing
.