Skip to main content

Module schema

Module schema 

Source
Expand description

JSON Schema generation for NAP core types.

These schemas describe the NAP data model (manifest, commit, etc.) in standard JSON Schema draft-2020-12 format. They are served by the HTTP resolver at /schema/{name} and consumed by the MCP server’s nap_get_schema tool so that agents can introspect the data model without guessing field names or types.

Functions§

commit_schema
Returns the JSON Schema for a NAP Commit.
manifest_schema
Returns the JSON Schema for the full Manifest struct.
validate_commit
Validate a commit against the commit schema.
validate_manifest
Validate a manifest against the manifest schema.