Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
Author[]google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.c...> 2025-09-17 16:10 UTC
Committer[]Andy Green <andy@warmcat.com> 2025-09-17 17:36 UTC
Treec36ac13561605df14d653bfe38ce41cd25abbd0a   Raw Patch
 
Add build-metric schema to sai-web
Add build-metric schema to sai-web

`sai-web` was unable to parse build metric information sent from
`sai-server` because it was missing the schema definition for
`com.warmcat.sai.build-metric`.

This commit adds the missing schema to the `lsm_schema_json_map` array
in `w-comms.c`, allowing `sai-web` to correctly parse and handle
build metric messages.
diff --git a/src/web/w-comms.c b/src/web/w-comms.c index 1ddf2cf..2b07fc6 100644 --- a/src/web/w-comms.c +++ b/src/web/w-comms.c @@ -101,6 +101,8 @@ const lws_struct_map_t lsm_schema_json_map[] = { "com.warmcat.sai.loadreport"), LSM_SCHEMA (sai_browse_rx_evinfo_t, NULL, lsm_websrv_evinfo, "com.warmcat.sai.taskactivity"), + LSM_SCHEMA (sai_build_metric_t, NULL, lsm_build_metric, + "com.warmcat.sai.build-metric"), }; size_t lsm_schema_json_map_array_size = LWS_ARRAY_SIZE(lsm_schema_json_map);
Page fetched 0s ago, creation time: 8ms (vhost etag hits: 0%, cache hits: 0%)