Skip to content

Releases: upsight/doctor

v1.2.2

10 Jul 14:48
Compare
Choose a tag to compare
  • More fixes for Python 3.

v1.2.1 (2017-07-07)

08 Jul 06:55
Compare
Choose a tag to compare
  • Fixed sphinx build error encountered on Sphinx v1.6.1+ when checking if the http domain has already been added.

v1.2.0

07 Jul 21:59
Compare
Choose a tag to compare
  • Adds support for Python 3.

v1.1.4

07 Jul 21:59
Compare
Choose a tag to compare
  • 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

07 Jul 21:58
Compare
Choose a tag to compare
  • 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

08 Mar 21:49
Compare
Choose a tag to compare

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.

v1.1.1

27 Feb 20:54
Compare
Choose a tag to compare
  • Made logic function exceptions always raise when application is in
    debug mode.
  • Updated error message to be clearer when a logic function raises an
    exception.

v1.1.0

20 Feb 23:58
Compare
Choose a tag to compare
  • Added ability to override the schema used for an individual endpoint.

v1.0.0

17 Feb 01:58
Compare
Choose a tag to compare

Initial release