At the moment, query, header and cookie parameters are generated inline in the OpenAPI document rather than referencing the Parameters object in the OpenAPI schema.
This PR adds a config flag INLINE_DEFINITIONS which controls this behaviour, defaulting to True which is the current behaviour.
I also took the opportunity to refactor the tests to use Pytest fixtures, and did some tidying.
At the moment, query, header and cookie parameters are generated inline in the OpenAPI document rather than referencing the
Parameters
object in the OpenAPI schema.This PR adds a config flag
INLINE_DEFINITIONS
which controls this behaviour, defaulting toTrue
which is the current behaviour.I also took the opportunity to refactor the tests to use Pytest fixtures, and did some tidying.