From 76d508181d3fceec361a7896c33aa45f1e6ec204 Mon Sep 17 00:00:00 2001 From: p1c2u Date: Sat, 19 Oct 2019 13:59:16 +0100 Subject: [PATCH] README fixes --- README.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 629aa18..9a414f4 100644 --- a/README.rst +++ b/README.rst @@ -66,8 +66,10 @@ and unmarshal request data from validation result .. code-block:: python - # get parameters dictionary with path, query, cookies and headers parameters + # get parameters object with path, query, cookies and headers parameters validated_params = result.parameters + # or specific parameters + validated_path_params = result.parameters.path # get body validated_body = result.body @@ -154,7 +156,9 @@ or simply specify response factory for shortcuts from openapi_core import validate_parameters, validate_body validated_data = validate_data( - spec, request, response, response_factory=FlaskOpenAPIResponse) + spec, request, response, + request_factory=FlaskOpenAPIRequest, + response_factory=FlaskOpenAPIResponse) Related projects ================