changes to openrpc interface #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
options in log filter
needs to become
check all impact and fix everywhere
make sure each change is implemented on server and also checked in tests everywhere, integration tests, other tests, ...
also change docs
Implementation Specification: Make tags Field Optional in LogFilter
Objective
Make the
tagsfield in theLogFilterstructure optional by changing fromtags: Vec<String>totags: Option<Vec<String>>. This change must be implemented across the entire codebase to resolve serde deserialization issues when the SDK omits the tags field.Requirements
tagsfield optional in the OpenRPC schema definitionLogFilterstruct inzinit_libto useOption<Vec<String>>Implementation Plan (7 Steps)
Option<Vec<String>>Root Cause
Server expects required
tags: Vec<String>, but SDK sends optional tags. When SDK omits tags, serde deserialization fails, causing server to return default filter with limit=0 and no results.Critical Files
crates/zinit_server/openrpc.json- OpenRPC speccrates/zinit_lib/src/db/logs/model.rs- LogFilter structcrates/zinit_lib/src/db/logs/mod.rs- Query logic & unit testscrates/zinit_integration_test/src/tests/logs.rs- Integration testsdocs/zinit_openrpc/openrpc.md- API documentationAcceptance Criteria
Ready for implementation approval.
Implementation Complete ✅
Commit
Implementation committed:
4c4f34bBrowse changes:
geomind_code/zinit@4c4f34b1d1Summary of Changes
Option<Vec<String>>Test Results
Key Files Modified
crates/zinit_lib/src/db/logs/model.rs- LogFilter structcrates/zinit_lib/src/db/logs/mod.rs- Query logic & testscrates/zinit_server/openrpc.json- API schemadocs/zinit_openrpc/openrpc.md- API documentationdocs/zinitdb_oschema/logs.oschema- Schema definitioncrates/zinit_lib/src/db/README.md- ExamplesImpact
Ready for merge to development branch.