code wiki / _hdl_build / nx_apistack_schema.nx

nx_apistack_schema.nx

buildroot/runtime/_hdl_build/nx_apistack_schema.nx

2128 B45 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind librarytopic apistack
docsdependenciesstructsconstsfunctions

about

nx_apistack_schema.nx -- CAP-API-SCHEMA: machine-readable request validation for /api (OpenAPI/JSON-Schema role). Schema is DATA (field<TAB>required<TAB>type rows), so a route's contract is a config not code; sc_validate checks every required field is present in the form body at a real token boundary (not a substring). Deterministic accept/reject, self-hosted spec = the sovereign exceed over a bolt-on validator. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_site_lock_lib.nx nx_apistack_schema.nx nx_apistack_schema_gate.nx

imports: nx_syscalls.nxnx_site_lock_lib.nx

imported by: nx_apistack_schema_gate.nx

structs

none

consts

none

functions

9func sc_field_present(body: *u8, body_n: i64, field: *u8, field_n: i64) -> i64
called by 2: sc_validatemain
26func sc_validate(schema: *u8, sc_n: i64, body: *u8, body_n: i64) -> i64