tson-schema
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "tson-schema", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A TypeScript API to create JSON-Schemas and TypeScript types", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -60,2 +60,12 @@ # tson-schema | ||
objectSchema.type // { req: 'string', opt?: [number] } | ||
/** | ||
* Enum | ||
*/ | ||
const enumSchema = t.enum({ | ||
enum: ['A', 2, 'C', 4] | ||
}) | ||
enumSchema.getSchema() // { enum: ['A', 2, 'C', 4] } | ||
enumSchema.type // 'A' | 2 | 'C' | 4 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
19358
8
367
71