You can steer the generation of base classes directly within your JSON Schema using the customBasePath extension. This avoids needing to pass CLI options for every specific model.
### Single Base Class
```json
{
"title": "User",
"type": "object",
"customBasePath": "myapp.models.UserBase",
"properties": {
"name": {"type": "string"}
}
}
Multiple Base Classes (Mixins)
{
"title": "User",
"type": "object",
"customBasePath": ["mixins.AuditMixin", "mixins.TimestampMixin"],
"properties": {
"name": {"type": "string"}
}
}
Note: When using multiple base classes, the specified classes are used directly without adding BaseModel. Ensure your mixins inherit from pydantic.BaseModel if you need Pydantic model behavior.