fixing examples and adding doc strings

This commit is contained in:
2026-02-22 13:17:40 +05:30
parent 14ed19d2d5
commit 37b892f695
14 changed files with 159 additions and 42 deletions

View File

@@ -84,14 +84,16 @@ class OpenAPIFirstApp(FastAPI):
Example
-------
>>> from openapi_first import OpenAPIFirstApp
>>> import app.routes as routes
>>>
>>> app = OpenAPIFirstApp(
... openapi_path="app/openapi.json",
... routes_module=routes,
... title="Example Service"
... )
```python
from openapi_first import OpenAPIFirstApp
import app.routes as routes
app = OpenAPIFirstApp(
openapi_path="app/openapi.json",
routes_module=routes,
title="Example Service",
)
```
"""
def __init__(