Dorthu / openapi3

A Python3 OpenAPI 3 Spec Parser
BSD 3-Clause "New" or "Revised" License
118 stars 47 forks source link

Configurable Session Factory & Passthrough to Operations #39

Closed chrised closed 3 years ago

chrised commented 3 years ago

While using this library for testing, I've had to modify aspects to enable compatibility with a semi-mocked requests Session proxy. It would be nice to be able to provide a factory for the session at runtime, and have the resulting session passed into Operations.

Allow custom session factories

d4614bf - 7331206+chrised@users.noreply.github.com

This assists in enabling tests to utilise openapi3 to validate their local/test endpoints.

Session passthrough to Operation(s)

2b332da - 7331206+chrised@users.noreply.github.com

If a session is defined at the top level, pass it through to the Operation class, so that it is used instead of the default session generated at parse-time.

Dorthu commented 3 years ago

This was released in 1.5.0 this morning