You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information on running tools with `uv`, see the [official documentation](https://docs.astral.sh/uv/guides/tools/#running-tools).
43
+
36
44
### CLI
37
45
38
46
The tool now uses a sub-command structure for different stages of the generation process.
@@ -162,6 +170,21 @@ The workflow is as follows:
162
170
163
171
> **Note:** For the Pydantic schema generation to work correctly, the Python environment where you run `openapi-gen` must have all the dependencies of your project installed. This is because the tool needs to import your Pydantic models to generate the schemas.
164
172
173
+
### Complete Example
174
+
175
+
Here is a complete example of how to generate a validated OpenAPI specification from a Python project with Pydantic models:
176
+
177
+
```bash
178
+
# Step 1: Generate JSON schemas from your Pydantic models
0 commit comments