-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Milestone
Description
Summary
Current JSON response building uses manual field-by-field assignment (data_result["status"] = "data"). This is error-prone and requires updates in multiple places when response structure changes.
Proposed solution
Define response structs (e.g., TopicSampleResponse) and implement template-based JSON conversion using visitor pattern. Libraries like nlohmann/json support to_json/from_json ADL customization points.
Additional context
Reference: data_access_manager.cpp - manual JSON construction in get_topic_sample_with_fallback()
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers