Doctor

Latest version: v3.13.7

Safety actively analyzes 688053 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 9

3.0.0

3.0.0beta.7

--------------------------

- Updates parsing of query/form params to parse null values properly.
- Makes a copy of the logic function to preserve doctor attributes if
the logic function is shared between routes.

3.0.0beta.6

--------------------------

- Updated handle_http to parse query and form parameters from strings to
their expected type before we do validation on them.
- Fixed issue where if multiple decorators were used on a logic function
and each one added param annotations the outer most decorator would
erase any param annotations added from the previous decorator.
- Added a nullable attribute to all types to signify that None is a valid value
for the type, in addition to it's native type.

3.0.0beta.5

--------------------------

- Fixed doctor attempting to document non doctor type params (70)
- String with format of date now returns datetime.date (69)
- Fixed swallowing of TypeError from SuperType class in Object init (68)
- Changed the flask code to only raise response validation errors if an
environment variable is set. Before it also raised them when DEBUG
was True in the config. In practice this was incredibly annoying and
slowed down development. Especially in the case where a datetime
string was returned that didn't include timezone information. Updated
the docs to reflect this too.
- Fixed issue that could create duplicate handler names which would
cause an exception in flask restful (67 )
- Made the `JsonSchema` doctor type work in validating/coercing params
in the api and for generating api documentation.

3.0.0beta.4

--------------------------

- Made validation errors better when raising http 400 exceptions. They now
will display all missing required fields and all validation errors along with
have the param in the error message.
- Fixed issue with doctor types being passed to logic functions. Instead the
native types are now passed to prevent downstream issues from other code
encountering unexpected/unknown types.

3.0.0beta.3

--------------------------

- Added default example values for all doctor types.
- Documentation updates
- Updated doctor code to work agnostic of the framework so eventually
other backends than flask could be used.

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.