@sinclair/typebox
Advanced tools
Comparing version 0.9.14 to 0.9.15
{ | ||
"name": "@sinclair/typebox", | ||
"version": "0.9.14", | ||
"version": "0.9.15", | ||
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -267,3 +267,3 @@ export interface UserDefinedOptions { | ||
properties: T; | ||
required: string[]; | ||
required?: string[]; | ||
} & UserDefinedOptions; | ||
@@ -270,0 +270,0 @@ export declare type TMap<T extends TSchema | TComposite> = { |
@@ -109,3 +109,3 @@ "use strict"; | ||
const required = property_names.filter(name => !optional.includes(name)); | ||
return { ...options, type: 'object', properties, required }; | ||
return { ...options, type: 'object', properties, required: required.length ? required : undefined }; | ||
} | ||
@@ -112,0 +112,0 @@ /** Creates a `{[key: string]: T}` type for the given item. */ |
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
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
65420