code wiki / _hdl_build / nx_apistack_schema.nx
nx_apistack_schema.nx
buildroot/runtime/_hdl_build/nx_apistack_schema.nx
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
imports: nx_syscalls.nxnx_site_lock_lib.nx
imported by: nx_apistack_schema_gate.nx
structs
| none |
consts
| none |
functions
| 9 | func sc_field_present(body: *u8, body_n: i64, field: *u8, field_n: i64) -> i64 |
| 26 | func sc_validate(schema: *u8, sc_n: i64, body: *u8, body_n: i64) -> i64 |