@stripe/extensibility-jsonschema-tools 0.6.6 → 1.0.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/README.md +18 -0
- package/dist/index.d.ts +2834 -33
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/api-surface.d.ts.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @stripe/extensibility-jsonschema-tools
|
|
2
|
+
|
|
3
|
+
Build-time tooling for generating JSON Schema and UI Schema from TypeScript classes annotated with JSDoc constraint tags. Used internally by other packages in the extensibility SDK.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @stripe/extensibility-jsonschema-tools
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires `typescript` ^5.8.0 as a peer dependency.
|
|
12
|
+
|
|
13
|
+
## What it does
|
|
14
|
+
|
|
15
|
+
- Generates JSON Schema from TypeScript class definitions using FormSpec
|
|
16
|
+
- Extracts config schemas from extension class exports
|
|
17
|
+
- Provides Stripe-specific schema defaults and stdlib type extensions
|
|
18
|
+
- Includes Zod validation schemas for JSON Schema and UI Schema
|