MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / jl_validate_arguments

Function jl_validate_arguments

src/cli/config_json_like.c:1816–1830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1814}
1815
1816static int jl_validate_arguments(const char *file_path, const char *const *object_path,
1817 size_t path_len, const char *entry_key) {
1818 if (!file_path || !*file_path || !object_path || !entry_key || path_len >= JL_MAX_DEPTH) {
1819 return -1;
1820 }
1821 if (jl_validate_key(entry_key) != 0) {
1822 return -1;
1823 }
1824 for (size_t i = 0; i < path_len; i++) {
1825 if (jl_validate_key(object_path[i]) != 0) {
1826 return -1;
1827 }
1828 }
1829 return 0;
1830}
1831
1832static int jl_build_fresh(const char *const *object_path, size_t path_len, const char *entry_key,
1833 const char *entry_json, size_t entry_length, char **result_out,

Calls 1

jl_validate_keyFunction · 0.85

Tested by

no test coverage detected