ObjectsMetaMetadata union for object-specific validation checks (minProperties, maxProperties, propertiesLength, propertyNames).
Source effect/SchemaRepresentation.ts:6207 lines
export type type ObjectsMeta =
| {
readonly _tag: "isMinProperties"
readonly minProperties: number
}
| {
readonly _tag: "isMaxProperties"
readonly maxProperties: number
}
| {
readonly _tag: "isPropertiesLengthBetween"
readonly minimum: number
readonly maximum: number
}
| {
readonly _tag: "isPropertyNames"
readonly propertyNames: Representation
}
Metadata union for object-specific validation checks (minProperties,
maxProperties, propertiesLength, propertyNames).
ObjectsMeta =
| import SchemaSchema.Annotations.interface Annotations.BuiltInMetaDefinitionsRegistry of metadata payloads emitted by built-in schema filters and checks.
Details
Do not augment this interface with custom metadata; extend MetaDefinitions
instead.
BuiltInMetaDefinitions[
| "isMinProperties"
| "isMaxProperties"
| "isPropertiesLengthBetween"
]
| { readonly _tag: "isPropertyNames"_tag: "isPropertyNames"; readonly propertyNames: RepresentationpropertyNames: type Representation =
| Declaration
| Reference
| Suspend
| Null
| Undefined
| Void
| Never
| Unknown
| Any
| String
| Number
| Boolean
| BigInt
| Symbol
| Literal
| UniqueSymbol
| ObjectKeyword
| Enum
| TemplateLiteral
| Arrays
| Objects
| Union
The core tagged union of all supported schema shapes.
Details
Each variant has a _tag discriminator. Switch on _tag to handle each
shape. Most variants carry optional annotations and some carry checks
for validation constraints.
Representation }Referenced by 2 symbols