Skip to main content

ObjectPropertyMeta

Experimental

Property definition for object schema.

Since​

2.0.0


Properties​

name: string​

Experimental

The property name

optional?: boolean​

Experimental

Whether the property is optional

schema?: GenericSchema​

Experimental

The schema for this property (used for nested generation)

generateCode()?: (varName, ctx) => object​

Experimental

Code generator function for this property's value

varName: string
ctx: GeneratorContext
Returns: object

code: string[]​

ctx​

ctx: GeneratorContext