import { SchemaBase } from '../generic'; import { TsonSchemaOrPrimitive } from './TsonSchemaOrPrimitive'; export type ObjectTsonSchemaWithoutRequired = SchemaBase & { readonly type: 'object'; readonly properties?: Record; readonly minProperties?: number; readonly maxProperties?: number; readonly default?: Record; readonly examples?: Record[]; readonly additionalProperties?: false | TsonSchemaOrPrimitive; readonly patternProperties?: false | Record; }; export type ObjectTsonSchemaWithRequired = ObjectTsonSchemaWithoutRequired & { readonly required: readonly string[]; }; export type ObjectTsonSchema = ObjectTsonSchemaWithoutRequired | ObjectTsonSchemaWithRequired;