PropertyDefinition
age-schema-client / PropertyDefinition
Interface: PropertyDefinition
Defined in: src/schema/types.ts:276
Property definition
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
type | | PropertyType | PropertyType[] | Property data type | src/schema/types.ts:280 |
description? | string | Property description | src/schema/types.ts:285 |
default? | unknown | Default value | src/schema/types.ts:290 |
required? | boolean | Whether the property is required | src/schema/types.ts:295 |
nullable? | boolean | Whether the property can be null | src/schema/types.ts:300 |
stringConstraints? | StringConstraints | String constraints (for string properties) | src/schema/types.ts:305 |
numberConstraints? | NumberConstraints | Number constraints (for number properties) | src/schema/types.ts:310 |
arrayConstraints? | ArrayConstraints | Array constraints (for array properties) | src/schema/types.ts:315 |
objectConstraints? | ObjectConstraints | Object constraints (for object properties) | src/schema/types.ts:320 |
customValidator? | string | Custom validation function name | src/schema/types.ts:325 |
metadata? | Record<string, unknown> | Additional metadata | src/schema/types.ts:330 |