Skip to content

Commit aff5214

Browse files
committed
update json
1 parent 743f2ff commit aff5214

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/drivers/devices/cpu/flowunit/data_source_parser/parser_plugin/restful_source_parser/restful_source_parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ modelbox::Status RestfulSourceParser::GetRestfulInfo(
119119

120120
if (config_json.contains("headers")) {
121121
auto value = config_json["headers"].get<nlohmann::json>();
122-
for (auto &header : value.items()) {
122+
for (const auto &header : value.items()) {
123123
if (header.key().empty()) {
124124
MBLOG_ERROR << "headers key is empty!";
125125
return modelbox::STATUS_BADCONF;

src/drivers/devices/cpu/flowunit/output_broker/broker_plugin/webhook_output_broker/webhook_output_broker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ modelbox::Status WebhookOutputBroker::ParseConfig(
196196
MBLOG_DEBUG << "url: " << output_info->url;
197197

198198
auto value = json["headers"].get<nlohmann::json>();
199-
for (auto &header : value.items()) {
199+
for (const auto &header : value.items()) {
200200
if (header.key().empty()) {
201201
MBLOG_ERROR << "headers key is empty!";
202202
return modelbox::STATUS_BADCONF;

src/modelbox/server/plugin/editor/editor_plugin.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ void ModelboxEditorPlugin::HandlerGraphModifyTime(
529529
modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson(
530530
const nlohmann::json& body, std::string& cmd) {
531531
nlohmann::json error_json;
532-
for (auto& element : body.items()) {
532+
for (const auto& element : body.items()) {
533533
cmd += " -" + element.key();
534534
if (element.value().is_null()) {
535535
continue;
@@ -548,7 +548,7 @@ modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson(
548548
cmd += " ";
549549
}
550550

551-
for (auto& i : port.items()) {
551+
for (const auto& i : port.items()) {
552552
cmd += i.key() + "=" + i.value().dump();
553553
if (i != port.items().end()) {
554554
cmd += ",";

thirdparty/CMake/local-package.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ExternalProject_Add(
8585
# nlohmann json
8686
ExternalProject_Add(
8787
nlohmann
88-
URL @LOCAL_PACKAGE_PATH@/v3.7.3.tar.gz
88+
URL @LOCAL_PACKAGE_PATH@/v3.11.2.tar.gz
8989
SOURCE_DIR ${THIRDPARTY_DOWNLOAD_DIR}/nlohmann
9090
CONFIGURE_COMMAND ""
9191
BUILD_COMMAND ""

thirdparty/CMake/pre-download.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (NOT @USE_CN_MIRROR@)
3333
set(TINYLOG_DOWNLOAD_URL "https://github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
3434
set(PYBIND11_DOWNLOAD_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.9.1.zip")
3535
set(TOML11_DOWNLOAD_URL "https://github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
36-
set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip")
36+
set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip")
3737
set(CPP_HTTPLIB_DOWNLOAD_URL "https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.10.4.zip")
3838
set(APIGW_CPP_SDK_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-binary/releases/download/BinaryArchive/APIGW-cpp-sdk.zip")
3939
set(MODELBOX_WEBUI_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-webui/archive/refs/tags/0.1.3.zip")
@@ -44,7 +44,7 @@ else()
4444
set(TINYLOG_DOWNLOAD_URL "https://ghproxy.com/github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
4545
set(PYBIND11_DOWNLOAD_URL "https://gitcode.net/mirrors/pybind/pybind11/-/archive/v2.9.1/pybind11-v2.9.1.zip")
4646
set(TOML11_DOWNLOAD_URL "https://ghproxy.com/github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
47-
set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.7.3.zip")
47+
set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.11.2.zip")
4848
set(CPP_HTTPLIB_DOWNLOAD_URL "https://gitcode.net/mirrors/yhirose/cpp-httplib/-/archive/v0.10.4/cpp-httplib-v0.10.4.zip")
4949
set(APIGW_CPP_SDK_DOWNLOAD_URL "https://obs.cn-north-1.myhuaweicloud.com/apig-sdk/APIGW-cpp-sdk.zip")
5050
set(MODELBOX_WEBUI_DOWNLOAD_URL "https://gitee.com/modelbox/modelbox-webui/repository/archive/tags/0.1.3.zip")

0 commit comments

Comments
 (0)