Skip to content
Shapemetry

@huukhanhnguyen/model / validate

validate

validateModelJSON()

validateModelJSON(json, registry?): void

Structural (Zod) + registry pass: method validity + lane placement, per-method arg keys, numeric-constraint placement, reserved/builtin keys. Throws on the first collected batch of errors.

Parameters

json

ModelJSON

registry?

Registry

Returns

void


annotationStyleErrors

Re-exports annotationStyleErrors


cameraErrors

Re-exports cameraErrors


componentTableWarnings

Re-exports componentTableWarnings


diagnoseModelJSON

Re-exports diagnoseModelJSON


EXPR_MAX_AST_DEPTH

Re-exports EXPR_MAX_AST_DEPTH


flatContractWarnings

Re-exports flatContractWarnings


formatModelDiagnostics

Re-exports formatModelDiagnostics


layerErrors

Re-exports layerErrors


materialErrors

Re-exports materialErrors


materialReferenceErrors

Re-exports materialReferenceErrors


nodeKeyErrors

Re-exports nodeKeyErrors


objectErrors

Re-exports objectErrors


openingCutWarnings

Re-exports openingCutWarnings


parseModel

Re-exports parseModel


patternErrors

Re-exports patternErrors


registryErrors

Re-exports registryErrors


RETIRED_ARG_MESSAGES

Re-exports RETIRED_ARG_MESSAGES


RETIRED_ROOT_MESSAGES

Re-exports RETIRED_ROOT_MESSAGES


rewriteRetiredMethods

Re-exports rewriteRetiredMethods


safeParseModel

Re-exports safeParseModel


skinErrors

Re-exports skinErrors


styleErrors

Re-exports styleErrors


styleReferenceErrors

Re-exports styleReferenceErrors


tableErrors

Re-exports tableErrors


textStyleErrors

Re-exports textStyleErrors


textureErrors

Re-exports textureErrors


validateExpressions

Re-exports validateExpressions


viewDetailReferenceErrors

Re-exports viewDetailReferenceErrors


viewErrors

Re-exports viewErrors

Last updated: 📖 1 min readEdit on GitHub