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
Add support for multiple base classes in base_class_map and customBasePath (#2916)
* Add support for multiple base classes in base_class_map and customBasePath
* Add comprehensive documentation for base class options
* docs: update llms.txt files
Generated by GitHub Actions
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/jsonschema.md
+81Lines changed: 81 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,9 +124,90 @@ class Defaults(BaseModel):
124
124
125
125
---
126
126
127
+
## Custom Base Class with `customBasePath`
128
+
129
+
You can specify custom base classes directly in your JSON Schema using the `customBasePath` extension. This allows you to define base classes at the schema level without using CLI options.
3.**`--base-class`** (CLI option) - Lowest priority (default for all models)
202
+
203
+
This allows you to set a default base class with `--base-class`, override specific models in the schema with `customBasePath`, and further override at the CLI level with `--base-class-map`.
@@ -24171,12 +24184,93 @@ class Defaults(BaseModel):
24171
24184
24172
24185
---
24173
24186
24187
+
## Custom Base Class with `customBasePath`
24188
+
24189
+
You can specify custom base classes directly in your JSON Schema using the `customBasePath` extension. This allows you to define base classes at the schema level without using CLI options.
3. **`--base-class`** (CLI option) - Lowest priority (default for all models)
24262
+
24263
+
This allows you to set a default base class with `--base-class`, override specific models in the schema with `customBasePath`, and further override at the CLI level with `--base-class-map`.
0 commit comments