schemantic 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -3
- package/README.md +17 -14
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +19 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/core/schemantic.d.ts.map +1 -1
- package/dist/core/schemantic.js +61 -13
- package/dist/core/schemantic.js.map +1 -1
- package/dist/generators/api-client-generator.d.ts.map +1 -1
- package/dist/generators/api-client-generator.js +23 -3
- package/dist/generators/api-client-generator.js.map +1 -1
- package/dist/generators/hook-generator.d.ts.map +1 -1
- package/dist/generators/hook-generator.js +37 -2
- package/dist/generators/hook-generator.js.map +1 -1
- package/dist/plugins/branded-types.js +1 -1
- package/dist/plugins/builtin.d.ts.map +1 -1
- package/dist/plugins/builtin.js +13 -6
- package/dist/plugins/builtin.js.map +1 -1
- package/dist/plugins/performance-monitoring.js +1 -1
- package/dist/plugins/request-deduplication.js +1 -1
- package/dist/plugins/zod-validation.d.ts +2 -1
- package/dist/plugins/zod-validation.d.ts.map +1 -1
- package/dist/plugins/zod-validation.js +46 -29
- package/dist/plugins/zod-validation.js.map +1 -1
- package/docs/CONFIGURATION.md +4 -4
- package/docs/FASTAPI_TUTORIAL.md +1497 -1497
- package/docs/PLUGINS.md +4 -0
- package/docs/PLUGIN_DEVELOPMENT.md +720 -720
- package/package.json +9 -5
package/docs/PLUGINS.md
CHANGED
|
@@ -132,6 +132,10 @@ afterGeneration: async (context: GenerationContext, result: any) => {
|
|
|
132
132
|
},
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
Note: The `react-hooks` built-in plugin is temporarily disabled in the default plugin lists due to known generation issues that can corrupt output for some schemas. To re-enable it for a specific project, add `{ name: 'react-hooks', enabled: true }` to your `plugins` array in `schemantic.config.*`, and run the generator on a small sample schema first to validate output.
|
|
138
|
+
|
|
135
139
|
### Type Generation Hooks
|
|
136
140
|
|
|
137
141
|
#### `beforeTypeGeneration`
|