Skip to content

withRequired

withRequired(node, required): AttributeNode

Defined in: metadata-model.ts:225

Clone one attribute node while overriding its required flag.

AttributeNode

Attribute node to clone.

boolean

Required-state override to apply to the cloned node.

AttributeNode

A cloned node with nested properties, arrays, and unions preserved.