pypi connexion 3.0.0a1

latest releases: 3.1.0, 3.0.6, 3.0.5...
19 months ago

Connexion 3 is now in Alpha 🎉

  • Connexion can now be used as middleware to supercharge any ASGI or WSGI compatible framework.
  • Aiohttp support has been dropped in favor of an ASGI compatible AsyncApp built on top of Starlette.
  • Connexion functionality is now pluggable by adding or removing middleware.
  • Validation is now pluggable by content type, solving longstanding issues regarding endpoints with
    multiple content types and providing a pluggable interface.

Breaking changes

  • Aiohttp support was dropped, use connexion.AsyncApp instead
  • The options argument has been renamed to swagger_ui_options
  • The uri_parser_class is now passed to the App or its add_api() method directly
    instead of via the options argument.
  • The jsonifier is now passed to the App or its add_api() method instead of setting it
    as an attribute on the Api.
  • Drop Flask 1.X support and support Flask 2.X async routes
  • Drop Python 3.6 (and add Python 3.10) support
  • connexion.request is now a Starlette Request instead of a Flask Request
  • Route priority changed. The most specific route should now be defined first in the specification.
  • We no longer guess a content type for response serialization if multiple are defined in the spec.
    We do take into account returned headers.
  • Don't return 400 when read-only property is received
  • Content type is now validated for requests and responses if defined in the spec
  • The deprecated positions for x-body-name are no longer supported
  • The parameter pass_context_arg_name has been removed. Context is now available as global
    request-level context, or can be passed in by defining a context_ parameter in your view function.
  • The MethodViewResolver has been renamed to MethodResolver, and a new MethodViewResolver
    has been added to work with Flask's MethodView specifically.
  • Built-in support for uWSGI has been removed. You can re-add this functionality using a custom middleware.

What's Changed

New Contributors

Full Changelog: 2.13.0...3.0.0a1

Don't miss a new connexion release

NewReleases is sending notifications on new releases.