Skip to content
neuralSPOT-X
API reference
HELIA HUB

nsx module validate

Check that an nsx-module.yaml file has all required fields and valid values.

nsx module validate [-h] [--json] metadata
Positional arguments
OptionValueDefaultDescription
metadatavaluerequiredPath to the nsx-module.yaml file to validate
Options for nsx module validate
OptionValueDefaultDescription
--jsonflagoptionalEmit machine-readable JSON instead of human-readable text

Run this before registering a custom module to catch errors early.

Terminal window
nsx module validate path/to/nsx-module.yaml
nsx module validate path/to/nsx-module.yaml --json

The checks are that schema_version is 1, that module.name, module.type and module.version are present and valid, that module.type is one of the supported types, that support.ambiqsuite is true, that build.cmake.package and build.cmake.targets are present and non-empty, that depends.required and depends.optional are present, and that compatibility.boards, compatibility.socs and compatibility.toolchains are non-empty.

-v/--verbose, -q/--quiet are parsed by nsx itself, so they go before the command name, as nsx -v module validate.