Skip to content

Commit 3221983

Browse files
committed
FastAPI docs formatting fix
1 parent fcddf6b commit 3221983

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: docs/integrations/fastapi.rst

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FastAPI
2-
=========
2+
=======
33

44
This section describes integration with `FastAPI <https://fastapi.tiangolo.com>`__ ASGI framework.
55

66
.. note::
77

8-
FastAPI also provides OpenAPI support. The main difference is that, unlike FastAPI's code-first approach, OpenAPI-core allows you to laverage your existing specification that alligns with API-First approach. You can read more about API-first vs. code-first in the [Guide to API-first](https://www.postman.com/api-first/).
8+
FastAPI also provides OpenAPI support. The main difference is that, unlike FastAPI's code-first approach, OpenAPI-core allows you to laverage your existing specification that alligns with API-First approach. You can read more about API-first vs. code-first in the `Guide to API-first <https://www.postman.com/api-first/>`__.
99

1010
Middleware
1111
----------
@@ -47,10 +47,14 @@ Response validation
4747
You can skip response validation process: by setting ``response_cls`` to ``None``
4848

4949
.. code-block:: python
50-
:emphasize-lines: 2
50+
:emphasize-lines: 5
5151
5252
app = FastAPI()
53-
app.add_middleware(FastAPIOpenAPIMiddleware, openapi=openapi, response_cls=None)
53+
app.add_middleware(
54+
FastAPIOpenAPIMiddleware,
55+
openapi=openapi,
56+
response_cls=None,
57+
)
5458
5559
Low level
5660
---------

0 commit comments

Comments
 (0)