Skip to content

Documentation does not reflect proper usage of Falcon request and response factories #240

Closed
@stojan-jovic

Description

@stojan-jovic

In current documentation we have something like this:

from openapi_core.contrib.falcon import FalconOpenAPIRequest
from openapi_core.contrib.falcon import FalconOpenAPIResponse

But that will not work with current openapi-core version (i.e. 0.13.3).

Solution is probably to add in openapi_core.contrib.falcon something like:

# backward compatibility
FalconOpenAPIRequest = FalconOpenAPIRequestFactory.create
FalconOpenAPIResponse = FalconOpenAPIResponseFactory.create

(so, similar to Flask's factories)

Or simply fix documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions