From b757013638361b4c0cf2f7d892c0c1377148e1ab Mon Sep 17 00:00:00 2001 From: liuzicheng1987 Date: Wed, 5 Jun 2024 22:24:36 +0200 Subject: [PATCH] Added the licenses dataset as a benchmark (#113) --- .github/workflows/linux-clang.yaml | 2 + .github/workflows/linux-gcc.yaml | 2 + .github/workflows/macos-clang-arm.yaml | 2 + .github/workflows/macos-clang-x64.yaml | 2 + .github/workflows/windows-msvc.yaml | 2 + benchmarks/all/licenses_read.cpp | 156 ++ benchmarks/all/licenses_write.cpp | 156 ++ benchmarks/data/licenses.json | 2981 ++++++++++++++++++++++++ include/rfl/bson/Reader.hpp | 8 + include/rfl/cbor/Reader.hpp | 2 +- 10 files changed, 3312 insertions(+), 1 deletion(-) create mode 100644 benchmarks/all/licenses_read.cpp create mode 100644 benchmarks/all/licenses_write.cpp create mode 100644 benchmarks/data/licenses.json diff --git a/.github/workflows/linux-clang.yaml b/.github/workflows/linux-clang.yaml index 2c19a497..e65fd6c5 100644 --- a/.github/workflows/linux-clang.yaml +++ b/.github/workflows/linux-clang.yaml @@ -45,3 +45,5 @@ jobs: ./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=simple_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_write + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_read + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_write diff --git a/.github/workflows/linux-gcc.yaml b/.github/workflows/linux-gcc.yaml index 4b0cdfda..2aa57f46 100644 --- a/.github/workflows/linux-gcc.yaml +++ b/.github/workflows/linux-gcc.yaml @@ -38,3 +38,5 @@ jobs: ./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=simple_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_write + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_read + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_write diff --git a/.github/workflows/macos-clang-arm.yaml b/.github/workflows/macos-clang-arm.yaml index 7b585d89..83fc4634 100644 --- a/.github/workflows/macos-clang-arm.yaml +++ b/.github/workflows/macos-clang-arm.yaml @@ -40,3 +40,5 @@ jobs: ./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=simple_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_write + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_read + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_write diff --git a/.github/workflows/macos-clang-x64.yaml b/.github/workflows/macos-clang-x64.yaml index 2c102200..c058b8d2 100644 --- a/.github/workflows/macos-clang-x64.yaml +++ b/.github/workflows/macos-clang-x64.yaml @@ -37,3 +37,5 @@ jobs: ./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=simple_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_read ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_write + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_read + ./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_write diff --git a/.github/workflows/windows-msvc.yaml b/.github/workflows/windows-msvc.yaml index c7d15e4f..8ab724bb 100644 --- a/.github/workflows/windows-msvc.yaml +++ b/.github/workflows/windows-msvc.yaml @@ -33,3 +33,5 @@ jobs: .\build\benchmarks\json\Release\reflect-cpp-json-benchmarks.exe --benchmark_filter=simple_read .\build\benchmarks\all\Release\reflect-cpp-all-format-benchmarks.exe --benchmark_filter=canada_read .\build\benchmarks\all\Release\reflect-cpp-all-format-benchmarks.exe --benchmark_filter=canada_write + .\build\benchmarks\all\Release\reflect-cpp-all-format-benchmarks.exe --benchmark_filter=licenses_read + .\build\benchmarks\all\Release\reflect-cpp-all-format-benchmarks.exe --benchmark_filter=licenses_write diff --git a/benchmarks/all/licenses_read.cpp b/benchmarks/all/licenses_read.cpp new file mode 100644 index 00000000..77a32973 --- /dev/null +++ b/benchmarks/all/licenses_read.cpp @@ -0,0 +1,156 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace licenses_read { + +// ---------------------------------------------------------------------------- + +struct Identifier { + std::string identifier; + std::string scheme; +}; + +struct Link { + std::string note; + std::string url; +}; + +struct OtherName { + std::string name; + std::optional note; +}; + +struct Text { + std::string media_type; + std::string title; + std::string url; +}; + +struct License { + std::string id; + std::vector identifiers; + std::vector links; + std::string name; + std::vector other_names; + std::optional superseded_by; + std::vector keywords; + std::vector text; +}; + +struct Licenses { + std::vector licenses; +}; + +// ---------------------------------------------------------------------------- + +static Licenses load_data() { + return rfl::json::load("benchmarks/data/licenses.json").value(); +} + +// ---------------------------------------------------------------------------- + +static void BM_licenses_read_reflect_cpp_bson(benchmark::State &state) { + const auto data = rfl::bson::write(load_data()); + for (auto _ : state) { + const auto res = rfl::bson::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_bson); + +static void BM_licenses_read_reflect_cpp_cbor(benchmark::State &state) { + const auto data = rfl::cbor::write(load_data()); + for (auto _ : state) { + const auto res = rfl::cbor::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_cbor); + +static void BM_licenses_read_reflect_cpp_flexbuf(benchmark::State &state) { + const auto data = rfl::flexbuf::write(load_data()); + for (auto _ : state) { + const auto res = rfl::flexbuf::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_flexbuf); + +static void BM_licenses_read_reflect_cpp_json(benchmark::State &state) { + const auto data = rfl::json::write(load_data()); + for (auto _ : state) { + const auto res = rfl::json::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_json); + +static void BM_licenses_read_reflect_cpp_msgpack(benchmark::State &state) { + const auto data = rfl::msgpack::write(load_data()); + for (auto _ : state) { + const auto res = rfl::msgpack::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_msgpack); + +static void BM_licenses_read_reflect_cpp_xml(benchmark::State &state) { + const auto data = rfl::xml::write<"license">(load_data()); + for (auto _ : state) { + const auto res = rfl::xml::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_xml); + +static void BM_licenses_read_reflect_cpp_toml(benchmark::State &state) { + const auto data = rfl::toml::write(load_data()); + for (auto _ : state) { + const auto res = rfl::toml::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_toml); + +static void BM_licenses_read_reflect_cpp_yaml(benchmark::State &state) { + const auto data = rfl::yaml::write(load_data()); + for (auto _ : state) { + const auto res = rfl::yaml::read(data); + if (!res) { + std::cout << res.error()->what() << std::endl; + } + } +} +BENCHMARK(BM_licenses_read_reflect_cpp_yaml); + +// ---------------------------------------------------------------------------- + +} // namespace licenses_read + diff --git a/benchmarks/all/licenses_write.cpp b/benchmarks/all/licenses_write.cpp new file mode 100644 index 00000000..111ddcb3 --- /dev/null +++ b/benchmarks/all/licenses_write.cpp @@ -0,0 +1,156 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace licenses_write { + +// ---------------------------------------------------------------------------- + +struct Identifier { + std::string identifier; + std::string scheme; +}; + +struct Link { + std::string note; + std::string url; +}; + +struct OtherName { + std::string name; + std::optional note; +}; + +struct Text { + std::string media_type; + std::string title; + std::string url; +}; + +struct License { + std::string id; + std::vector identifiers; + std::vector links; + std::string name; + std::vector other_names; + std::optional superseded_by; + std::vector keywords; + std::vector text; +}; + +struct Licenses { + std::vector licenses; +}; + +// ---------------------------------------------------------------------------- + +static Licenses load_data() { + return rfl::json::load("benchmarks/data/licenses.json").value(); +} + +// ---------------------------------------------------------------------------- + +static void BM_licenses_write_reflect_cpp_bson(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::bson::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_bson); + +static void BM_licenses_write_reflect_cpp_cbor(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::cbor::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_cbor); + +static void BM_licenses_write_reflect_cpp_flexbuf(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::flexbuf::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_flexbuf); + +static void BM_licenses_write_reflect_cpp_json(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::json::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_json); + +static void BM_licenses_write_reflect_cpp_msgpack(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::msgpack::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_msgpack); + +static void BM_licenses_write_reflect_cpp_toml(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::toml::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_toml); + +static void BM_licenses_write_reflect_cpp_xml(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::xml::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_xml); + +static void BM_licenses_write_reflect_cpp_yaml(benchmark::State &state) { + const auto data = load_data(); + for (auto _ : state) { + const auto output = rfl::yaml::write(data); + if (output.size() == 0) { + std::cout << "No output" << std::endl; + } + } +} +BENCHMARK(BM_licenses_write_reflect_cpp_yaml); + +// ---------------------------------------------------------------------------- + +} // namespace licenses_write + diff --git a/benchmarks/data/licenses.json b/benchmarks/data/licenses.json new file mode 100644 index 00000000..c27dc2b3 --- /dev/null +++ b/benchmarks/data/licenses.json @@ -0,0 +1,2981 @@ +{ + "licenses": [ + { + "id": "AAL", + "identifiers": [ + { + "identifier": "AAL", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Attribution Assurance License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/AAL" + } + ], + "name": "Attribution Assurance License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/AAL" + } + ] + }, + { + "id": "AFL-3.0", + "identifiers": [ + { + "identifier": "AFL-3.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Academic Free License (AFL)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/AFL-3.0" + } + ], + "name": "Academic Free License, Version 3.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/AFL-3.0" + } + ] + }, + { + "id": "AGPL-3.0", + "identifiers": [ + { + "identifier": "AGPL-3.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: GNU Affero General Public License v3", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/AGPL-3.0" + } + ], + "name": "GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPL-3.0)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/AGPL-3.0" + } + ] + }, + { + "id": "APL-1.0", + "identifiers": [ + { + "identifier": "APL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/APL-1.0" + } + ], + "name": "Adaptive Public License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "miscellaneous" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/APL-1.0" + } + ] + }, + { + "id": "APSL-2.0", + "identifiers": [ + { + "identifier": "APSL-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Apple Public Source License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/APSL-2.0" + } + ], + "name": "Apple Public Source License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/APSL-2.0" + } + ] + }, + { + "id": "Apache-1.1", + "identifiers": [ + { + "identifier": "Apache-1.1", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Apache-1.1" + } + ], + "name": "Apache Software License, Version 1.1", + "other_names": [], + "superseded_by": "Apache-2.0", + "keywords": [ + "discouraged", + "obsolete", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Apache-1.1" + } + ] + }, + { + "id": "Apache-2.0", + "identifiers": [ + { + "identifier": "Apache-2.0", + "scheme": "DEP5" + }, + { + "identifier": "Apache-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Apache Software License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "tl;dr legal", + "url": "https://tldrlegal.com/license/apache-license-2.0-%28apache-2.0%29" + }, + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/Apache_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Apache-2.0" + } + ], + "name": "Apache License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular", + "permissive" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, + { + "id": "Artistic-1.0", + "identifiers": [ + { + "identifier": "Artistic-1.0", + "scheme": "DEP5" + }, + { + "identifier": "Artistic-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Artistic-1.0" + } + ], + "name": "Artistic License, Version 1.0", + "other_names": [], + "superseded_by": "Artistic-2.0", + "keywords": [ + "osi-approved", + "discouraged", + "obsolete" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Artistic-1.0" + } + ] + }, + { + "id": "Artistic-2.0", + "identifiers": [ + { + "identifier": "Artistic-2.0", + "scheme": "DEP5" + }, + { + "identifier": "Artistic-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Artistic License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Artistic-2.0" + } + ], + "name": "Artistic License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "miscellaneous", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Artistic-2.0" + } + ] + }, + { + "id": "BSD-2", + "identifiers": [ + { + "identifier": "BSD-2-clause", + "scheme": "DEP5" + }, + { + "identifier": "BSD-2-Clause", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "Wikipedia Page", + "url": "https://en.wikipedia.org/wiki/BSD_licenses#2-clause" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/BSD-2-Clause" + } + ], + "name": "BSD 2-Clause License", + "other_names": [ + { + "name": "Simplified BSD License", + "note": null + }, + { + "name": "FreeBSD License", + "note": null + } + ], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular", + "permissive" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/BSD-2-Clause" + } + ] + }, + { + "id": "BSD-3", + "identifiers": [ + { + "identifier": "BSD-3-clause", + "scheme": "DEP5" + }, + { + "identifier": "BSD-3-Clause", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: BSD License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "Wikipedia Page", + "url": "https://en.wikipedia.org/wiki/BSD_licenses#3-clause" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/BSD-3-Clause" + } + ], + "name": "BSD 3-Clause License", + "other_names": [ + { + "name": "Revised BSD License", + "note": null + }, + { + "name": "Modified BSD License", + "note": null + }, + { + "name": "New BSD License", + "note": null + } + ], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular", + "permissive" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/BSD-3-Clause" + } + ] + }, + { + "id": "BSL-1.0", + "identifiers": [ + { + "identifier": "BSL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/BSL-1.0" + } + ], + "name": "Boost Software License 1.0 (BSL-1.0)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/BSL-1.0" + } + ] + }, + { + "id": "CATOSL-1.1", + "identifiers": [ + { + "identifier": "CATOSL-1.1", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CATOSL-1.1" + } + ], + "name": "Computer Associates Trusted Open Source License, Version 1.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CATOSL-1.1" + } + ] + }, + { + "id": "CDDL-1.0", + "identifiers": [ + { + "identifier": "CDDL-1.0", + "scheme": "DEP5" + }, + { + "identifier": "CDDL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/Common_Development_and_Distribution_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CDDL-1.0" + } + ], + "name": "Common Development and Distribution License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CDDL-1.0" + } + ] + }, + { + "id": "CECILL-2.1", + "identifiers": [ + { + "identifier": "License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CECILL-2.1" + } + ], + "name": "Cea Cnrs Inria Logiciel Libre License, Version 2.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CECILL-2.1" + } + ] + }, + { + "id": "CNRI-Python", + "identifiers": [ + { + "identifier": "CNRI-Python", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Python License (CNRI Python License)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CNRI-Python" + } + ], + "name": "CNRI portion of the multi-part Python License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CNRI-Python" + } + ] + }, + { + "id": "CPAL-1.0", + "identifiers": [ + { + "identifier": "CPAL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CPAL-1.0" + } + ], + "name": "Common Public Attribution License Version 1.0 (CPAL-1.0)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CPAL-1.0" + } + ] + }, + { + "id": "CPL-1.0", + "identifiers": [ + { + "identifier": "CPL", + "scheme": "DEP5" + }, + { + "identifier": "CPL-1.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Common Public License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CPL-1.0" + } + ], + "name": "Common Public License, Version 1.0", + "other_names": [], + "superseded_by": "EPL-1.0", + "keywords": [ + "discouraged", + "obsolete", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CPL-1.0" + } + ] + }, + { + "id": "CUA-OPL-1.0", + "identifiers": [ + { + "identifier": "CUA-OPL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CUA-OPL-1.0" + } + ], + "name": "CUA Office Public License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CUA-OPL-1.0" + } + ] + }, + { + "id": "CVW", + "identifiers": [ + { + "identifier": "License :: OSI Approved :: MITRE Collaborative Virtual Workspace License (CVW)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/CVW" + } + ], + "name": "The MITRE Collaborative Virtual Workspace License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "retired", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/CVW" + } + ] + }, + { + "id": "ECL-1.0", + "identifiers": [ + { + "identifier": "ECL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/ECL-1.0" + } + ], + "name": "Educational Community License, Version 1.0", + "other_names": [], + "superseded_by": "ECL-2.0", + "keywords": [ + "discouraged", + "obsolete", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/ECL-1.0" + } + ] + }, + { + "id": "ECL-2.0", + "identifiers": [ + { + "identifier": "ECL-2.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/ECL-2.0" + } + ], + "name": "Educational Community License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "special-purpose", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/ECL-2.0" + } + ] + }, + { + "id": "EFL-1.0", + "identifiers": [ + { + "identifier": "EFL-1.0", + "scheme": "DEP5" + }, + { + "identifier": "EFL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/EFL-1.0" + } + ], + "name": "The Eiffel Forum License, Version 1", + "other_names": [], + "superseded_by": "EFL-2.0", + "keywords": [ + "osi-approved", + "discouraged", + "obsolete" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/EFL-1.0" + } + ] + }, + { + "id": "EFL-2.0", + "identifiers": [ + { + "identifier": "EFL-2.0", + "scheme": "DEP5" + }, + { + "identifier": "EFL-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Eiffel Forum License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/EFL-2.0" + } + ], + "name": "Eiffel Forum License, Version 2", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/EFL-2.0" + } + ] + }, + { + "id": "EPL-1.0", + "identifiers": [ + { + "identifier": "EPL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/Eclipse_Public_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/EPL-1.0" + } + ], + "name": "Eclipse Public License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://www.eclipse.org/legal/epl-v10.html" + } + ] + }, + { + "id": "EUDatagrid", + "identifiers": [ + { + "identifier": "EUDatagrid", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/EUDatagrid" + } + ], + "name": "EU DataGrid Software License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/EUDatagrid" + } + ] + }, + { + "id": "EUPL-1.1", + "identifiers": [ + { + "identifier": "EUPL-1.1", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: European Union Public Licence 1.1 (EUPL 1.1)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/EUPL-1.1" + } + ], + "name": "European Union Public License, Version 1.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/EUPL-1.1" + } + ] + }, + { + "id": "Entessa", + "identifiers": [ + { + "identifier": "Entessa", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Entessa" + } + ], + "name": "Entessa Public License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Entessa" + } + ] + }, + { + "id": "Fair", + "identifiers": [ + { + "identifier": "Fair", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Fair" + } + ], + "name": "Fair License (Fair)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Fair" + } + ] + }, + { + "id": "Frameworx-1.0", + "identifiers": [ + { + "identifier": "Frameworx-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Frameworx-1.0" + } + ], + "name": "Frameworx License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Frameworx-1.0" + } + ] + }, + { + "id": "GPL-2.0", + "identifiers": [ + { + "identifier": "GPL-2.0", + "scheme": "DEP5" + }, + { + "identifier": "GPL-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "tl;dr legal", + "url": "https://tldrlegal.com/license/gnu-general-public-license-v2" + }, + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/GNU_General_Public_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/GPL-2.0" + } + ], + "name": "GNU General Public License, Version 2.0", + "other_names": [], + "superseded_by": "GPL-3.0", + "keywords": [ + "osi-approved", + "popular", + "copyleft" + ], + "text": [ + { + "media_type": "text/plain", + "title": "Plain Text", + "url": "https://www.gnu.org/licenses/gpl-2.0.txt" + }, + { + "media_type": "text/html", + "title": "HTML", + "url": "https://www.gnu.org/licenses/gpl-2.0-standalone.html" + } + ] + }, + { + "id": "GPL-3.0", + "identifiers": [ + { + "identifier": "GPL-3.0", + "scheme": "DEP5" + }, + { + "identifier": "GPL-3.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: GNU General Public License (GPL)", + "scheme": "Trove" + }, + { + "identifier": "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "tl;dr legal", + "url": "https://tldrlegal.com/license/gnu-general-public-license-v3-%28gpl-3%29" + }, + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/GNU_General_Public_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/GPL-3.0" + } + ], + "name": "GNU General Public License, Version 3.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular", + "copyleft" + ], + "text": [ + { + "media_type": "text/plain", + "title": "Plain Text", + "url": "https://www.gnu.org/licenses/gpl-3.0.txt" + }, + { + "media_type": "text/html", + "title": "HTML", + "url": "https://www.gnu.org/licenses/gpl-3.0-standalone.html" + } + ] + }, + { + "id": "HPND", + "identifiers": [ + { + "identifier": "HPND", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/HPND" + } + ], + "name": "Historical Permission Notice and Disclaimer", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/HPND" + } + ] + }, + { + "id": "IPA", + "identifiers": [ + { + "identifier": "IPA", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/IPA" + } + ], + "name": "IPA Font License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "special-purpose" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/IPA" + } + ] + }, + { + "id": "IPL-1.0", + "identifiers": [ + { + "identifier": "IPL-1.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: IBM Public License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/IPL-1.0" + } + ], + "name": "IBM Public License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/IPL-1.0" + } + ] + }, + { + "id": "ISC", + "identifiers": [ + { + "identifier": "ISC", + "scheme": "DEP5" + }, + { + "identifier": "ISC", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: ISC License (ISCL)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/ISC" + }, + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/ISC_license" + } + ], + "name": "ISC License (ISC)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/ISC" + } + ] + }, + { + "id": "Intel", + "identifiers": [ + { + "identifier": "Intel", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Intel Open Source License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Intel" + } + ], + "name": "The Intel Open Source License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "retired", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Intel" + } + ] + }, + { + "id": "LGPL-2.1", + "identifiers": [ + { + "identifier": "LGPL-2.1", + "scheme": "DEP5" + }, + { + "identifier": "LGPL-2.1", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LGPL-2.1" + } + ], + "name": "GNU Lesser General Public License, Version 2.1", + "other_names": [], + "superseded_by": "LGPL-3.0", + "keywords": [ + "osi-approved", + "popular", + "copyleft" + ], + "text": [ + { + "media_type": "text/plain", + "title": "Plain Text", + "url": "https://www.gnu.org/licenses/lgpl-2.1.txt" + }, + { + "media_type": "text/html", + "title": "HTML", + "url": "https://www.gnu.org/licenses/lgpl-2.1-standalone.html" + } + ] + }, + { + "id": "LGPL-3.0", + "identifiers": [ + { + "identifier": "LGPL-3.0", + "scheme": "DEP5" + }, + { + "identifier": "LGPL-3.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", + "scheme": "Trove" + }, + { + "identifier": "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LGPL-3.0" + } + ], + "name": "GNU Lesser General Public License, Version 3.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular", + "copyleft" + ], + "text": [ + { + "media_type": "text/plain", + "title": "Plain Text", + "url": "https://www.gnu.org/licenses/lgpl-3.0.txt" + }, + { + "media_type": "text/html", + "title": "HTML", + "url": "https://www.gnu.org/licenses/lgpl-3.0-standalone.html" + } + ] + }, + { + "id": "LPL-1.0", + "identifiers": [ + { + "identifier": "LPL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LPL-1.0" + } + ], + "name": "Lucent Public License, Plan 9, Version 1.0", + "other_names": [], + "superseded_by": "LPL-1.02", + "keywords": [ + "osi-approved", + "discouraged", + "obsolete" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/LPL-1.0" + } + ] + }, + { + "id": "LPL-1.02", + "identifiers": [ + { + "identifier": "LPL-1.02", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LPL-1.02" + } + ], + "name": "Lucent Public License, Version 1.02", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/LPL-1.02" + } + ] + }, + { + "id": "LPPL-1.3c", + "identifiers": [ + { + "identifier": "LPPL-1.3c", + "scheme": "DEP5" + }, + { + "identifier": "LPPL-1.3c", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LPPL-1.3c" + } + ], + "name": "LaTeX Project Public License, Version 1.3c", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/LPPL-1.3c" + } + ] + }, + { + "id": "LiLiQ-P-1.1", + "identifiers": [], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LiLiQ-P-1.1" + } + ], + "name": "Licence Libre du Québec – Permissive, Version 1.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "international", + "permissive" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/LiLiQ-P-1.1" + } + ] + }, + { + "id": "LiLiQ-R+", + "identifiers": [], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LiLiQ-Rplus-1.1" + } + ], + "name": "Licence Libre du Québec – Réciprocité forte, Version 1.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "international", + "osi-approved", + "copyleft" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/LiLiQ-Rplus-1.1" + } + ] + }, + { + "id": "LiLiQ-R-1.1", + "identifiers": [], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/LiLiQ-R-1.1" + } + ], + "name": "Licence Libre du Québec – Réciprocité, Version 1.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "international", + "osi-approved", + "copyleft" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/LiLiQ-R-1.1" + } + ] + }, + { + "id": "MIT", + "identifiers": [ + { + "identifier": "MIT", + "scheme": "DEP5" + }, + { + "identifier": "Expat", + "scheme": "DEP5" + }, + { + "identifier": "MIT", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: MIT License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "tl;dr legal", + "url": "https://tldrlegal.com/license/mit-license" + }, + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/MIT_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/mit" + } + ], + "name": "MIT/Expat License", + "other_names": [ + { + "name": "MIT", + "note": "Because MIT has used many licenses for software, the Free Software Foundation considers MIT License ambiguous. The MIT License published on the OSI site is the same as the Expat License." + }, + { + "name": "Expat", + "note": "Because MIT has used many licenses for software, the Free Software Foundation considers MIT License ambiguous. The MIT License published on the OSI site is the same as the Expat License." + } + ], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular", + "permissive" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/mit" + } + ] + }, + { + "id": "MPL-1.0", + "identifiers": [ + { + "identifier": "MPL-1.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Mozilla Public License 1.0 (MPL)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/MPL-1.0" + } + ], + "name": "Mozilla Public License, Version 1.0", + "other_names": [], + "superseded_by": "MPL-2.0", + "keywords": [ + "osi-approved", + "discouraged", + "obsolete" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/MPL-1.0" + } + ] + }, + { + "id": "MPL-1.1", + "identifiers": [ + { + "identifier": "MPL-1.1", + "scheme": "DEP5" + }, + { + "identifier": "MPL-1.1", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/MPL-1.1" + } + ], + "name": "Mozilla Public License, Version 1.1", + "other_names": [], + "superseded_by": "MPL-2.0", + "keywords": [ + "osi-approved", + "discouraged", + "obsolete" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/MPL-1.1" + } + ] + }, + { + "id": "MPL-2.0", + "identifiers": [ + { + "identifier": "MPL-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "Wikipedia page", + "url": "https://en.wikipedia.org/wiki/MPL_License" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/MPL-2.0" + }, + { + "note": "Mozilla Page", + "url": "https://www.mozilla.org/en-US/MPL/" + } + ], + "name": "Mozilla Public License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "popular", + "copyleft" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://www.mozilla.org/en-US/MPL/2.0/" + } + ] + }, + { + "id": "MS-PL", + "identifiers": [ + { + "identifier": "MS-PL", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/MS-PL" + } + ], + "name": "Microsoft Public License (MS-PL)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/MS-PL" + } + ] + }, + { + "id": "MS-RL", + "identifiers": [ + { + "identifier": "MS-RL", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/MS-RL" + } + ], + "name": "Microsoft Reciprocal License (MS-RL)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/MS-RL" + } + ] + }, + { + "id": "MirOS", + "identifiers": [ + { + "identifier": "MirOS", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/MirOS" + } + ], + "name": "The MirOS Licence (MirOS)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/MirOS" + } + ] + }, + { + "id": "Motosoto", + "identifiers": [ + { + "identifier": "Motosoto", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Motosoto License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Motosoto" + } + ], + "name": "Motosoto Open Source License, Version 0.9.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Motosoto" + } + ] + }, + { + "id": "Multics", + "identifiers": [ + { + "identifier": "Multics", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Multics" + } + ], + "name": "Multics License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Multics" + } + ] + }, + { + "id": "NASA-1.3", + "identifiers": [ + { + "identifier": "NASA-1.3", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/NASA-1.3" + } + ], + "name": "NASA Open Source Agreement, Version 1.3", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "special-purpose" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/NASA-1.3" + } + ] + }, + { + "id": "NCSA", + "identifiers": [ + { + "identifier": "NCSA", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: University of Illinois/NCSA Open Source License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/NCSA" + } + ], + "name": "The University of Illinois/NCSA Open Source License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/NCSA" + } + ] + }, + { + "id": "NGPL", + "identifiers": [ + { + "identifier": "NGPL", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Nethack General Public License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/NGPL" + } + ], + "name": "The Nethack General Public License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/NGPL" + } + ] + }, + { + "id": "NPOSL-3.0", + "identifiers": [ + { + "identifier": "NPOSL-3.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/NPOSL-3.0" + } + ], + "name": "The Non-Profit Open Software License, Version 3.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/NPOSL-3.0" + } + ] + }, + { + "id": "NTP", + "identifiers": [ + { + "identifier": "NTP", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/NTP" + } + ], + "name": "NTP License (NTP)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/NTP" + } + ] + }, + { + "id": "Naumen", + "identifiers": [ + { + "identifier": "Naumen", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Naumen" + } + ], + "name": "NAUMEN Public License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Naumen" + } + ] + }, + { + "id": "Nokia", + "identifiers": [ + { + "identifier": "Nokia", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Nokia Open Source License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Nokia" + } + ], + "name": "Nokia Open Source License, Version 1.0a", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Nokia" + } + ] + }, + { + "id": "OCLC-2.0", + "identifiers": [ + { + "identifier": "OCLC-2.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/OCLC-2.0" + } + ], + "name": "The OCLC Research Public License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/OCLC-2.0" + } + ] + }, + { + "id": "OFL-1.1", + "identifiers": [ + { + "identifier": "OFL-1.1", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/OFL-1.1" + } + ], + "name": "SIL Open Font License, Version 1.1", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "special-purpose" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/OFL-1.1" + } + ] + }, + { + "id": "OGTSL", + "identifiers": [ + { + "identifier": "OGTSL", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Open Group Test Suite License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/OGTSL" + } + ], + "name": "The Open Group Test Suite License (OGTSL)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/OGTSL" + } + ] + }, + { + "id": "OPL-2.1", + "identifiers": [], + "links": [ + { + "note": "OSET Foundation Page", + "url": "https://www.osetfoundation.org/public-license" + }, + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/OPL-2.1" + } + ], + "name": "OSET Foundation Public License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "special-purpose" + ], + "text": [ + { + "media_type": "application/pdf", + "title": "PDF", + "url": "https://static1.squarespace.com/static/528d46a2e4b059766439fa8b/t/53236a37e4b0db70c9afdf14/1394829879761/OSETPublicLicense_v2.pdf" + }, + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/OPL-2.1" + } + ] + }, + { + "id": "OSL-1.0", + "identifiers": [ + { + "identifier": "OSL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/OSL-1.0" + } + ], + "name": "Open Software License, Version 1.0", + "other_names": [], + "superseded_by": "OLS-3.0", + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/OSL-1.0" + } + ] + }, + { + "id": "OSL-2.1", + "identifiers": [ + { + "identifier": "OSL-2.1", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/OSL-2.1" + } + ], + "name": "Open Software License, Version 2.1", + "other_names": [], + "superseded_by": "OLS-3.0", + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/OSL-2.1" + } + ] + }, + { + "id": "OSL-3.0", + "identifiers": [ + { + "identifier": "OSL-3.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/OSL-3.0" + } + ], + "name": "Open Software License, Version 3.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "miscellaneous" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/OSL-3.0" + } + ] + }, + { + "id": "PHP-3.0", + "identifiers": [ + { + "identifier": "PHP-3.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/PHP-3.0" + } + ], + "name": "The PHP License, Version 3.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/PHP-3.0" + } + ] + }, + { + "id": "PostgreSQL", + "identifiers": [ + { + "identifier": "PostgreSQL", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/PostgreSQL" + } + ], + "name": "The PostgreSQL Licence", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/PostgreSQL" + } + ] + }, + { + "id": "Python-2.0", + "identifiers": [ + { + "identifier": "Python-2.0", + "scheme": "DEP5" + }, + { + "identifier": "Python-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Python Software Foundation License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Python-2.0" + } + ], + "name": "Python License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Python-2.0" + } + ] + }, + { + "id": "QPL-1.0", + "identifiers": [ + { + "identifier": "QPL-1.0", + "scheme": "DEP5" + }, + { + "identifier": "QPL-1.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Qt Public License (QPL)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/QPL-1.0" + } + ], + "name": "The Q Public License Version (QPL-1.0)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/QPL-1.0" + } + ] + }, + { + "id": "RPL-1.1", + "identifiers": [ + { + "identifier": "RPL-1.1", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/RPL-1.1" + } + ], + "name": "Reciprocal Public License, Version 1.1", + "other_names": [], + "superseded_by": "RPL-1.5", + "keywords": [ + "discouraged", + "obsolete", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/RPL-1.1" + } + ] + }, + { + "id": "RPL-1.5", + "identifiers": [ + { + "identifier": "RPL-1.5", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/RPL-1.5" + } + ], + "name": "Reciprocal Public License, Version 1.5", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/RPL-1.5" + } + ] + }, + { + "id": "RPSL-1.0", + "identifiers": [ + { + "identifier": "RPSL-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/RPSL-1.0" + } + ], + "name": "RealNetworks Public Source License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/RPSL-1.0" + } + ] + }, + { + "id": "RSCPL", + "identifiers": [ + { + "identifier": "RSCPL", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Ricoh Source Code Public License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/RSCPL" + } + ], + "name": "The Ricoh Source Code Public License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/RSCPL" + } + ] + }, + { + "id": "SISSL", + "identifiers": [ + { + "identifier": "SISSL", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Sun Industry Standards Source License (SISSL)", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/SISSL" + } + ], + "name": "Sun Industry Standards Source License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "retired", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/SISSL" + } + ] + }, + { + "id": "SPL-1.0", + "identifiers": [ + { + "identifier": "SPL-1.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Sun Public License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/SPL-1.0" + } + ], + "name": "Sun Public License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/SPL-1.0" + } + ] + }, + { + "id": "Simple-2.0", + "identifiers": [ + { + "identifier": "SimPL-2.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Simple-2.0" + } + ], + "name": "Simple Public License (SimPL-2.0)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Simple-2.0" + } + ] + }, + { + "id": "Sleepycat", + "identifiers": [ + { + "identifier": "Sleepycat", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Sleepycat License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Sleepycat" + } + ], + "name": "The Sleepycat License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Sleepycat" + } + ] + }, + { + "id": "UPL", + "identifiers": [], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/UPL" + } + ], + "name": "The Universal Permissive License (UPL), Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/UPL" + } + ] + }, + { + "id": "VSL-1.0", + "identifiers": [ + { + "identifier": "VSL-1.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Vovida Software License 1.0", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/VSL-1.0" + } + ], + "name": "The Vovida Software License, Version 1.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/VSL-1.0" + } + ] + }, + { + "id": "W3C", + "identifiers": [ + { + "identifier": "W3C", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: W3C License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/W3C" + } + ], + "name": "The W3C Software Notice and License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/W3C" + } + ] + }, + { + "id": "WXwindows", + "identifiers": [ + { + "identifier": "WXwindows", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/WXwindows" + } + ], + "name": "The wxWindows Library Licence", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/WXwindows" + } + ] + }, + { + "id": "Watcom-1.0", + "identifiers": [ + { + "identifier": "Watcom-1.0", + "scheme": "SPDX" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Watcom-1.0" + } + ], + "name": "The Sybase Open Source Licence", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Watcom-1.0" + } + ] + }, + { + "id": "Xnet", + "identifiers": [ + { + "identifier": "Xnet", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: X.Net License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Xnet" + } + ], + "name": "The X.Net, Inc. License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved", + "discouraged", + "redundant" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Xnet" + } + ] + }, + { + "id": "ZPL-2.0", + "identifiers": [ + { + "identifier": "Zope-2.0", + "scheme": "DEP5" + }, + { + "identifier": "ZPL-2.0", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: Zope Public License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/ZPL-2.0" + } + ], + "name": "The Zope Public License, Version 2.0", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "non-reusable", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/ZPL-2.0" + } + ] + }, + { + "id": "Zlib", + "identifiers": [ + { + "identifier": "Zlib", + "scheme": "DEP5" + }, + { + "identifier": "Zlib", + "scheme": "SPDX" + }, + { + "identifier": "License :: OSI Approved :: zlib/libpng License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/Zlib" + } + ], + "name": "The zlib/libpng License (Zlib)", + "other_names": [], + "superseded_by": null, + "keywords": [ + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/Zlib" + } + ] + }, + { + "id": "jabberpl", + "identifiers": [ + { + "identifier": "License :: OSI Approved :: Jabber Open Source License", + "scheme": "Trove" + } + ], + "links": [ + { + "note": "OSI Page", + "url": "https://opensource.org/licenses/jabberpl" + } + ], + "name": "Jabber Open Source License", + "other_names": [], + "superseded_by": null, + "keywords": [ + "discouraged", + "retired", + "osi-approved" + ], + "text": [ + { + "media_type": "text/html", + "title": "HTML", + "url": "https://opensource.org/licenses/jabberpl" + } + ] + } + ] +} \ No newline at end of file diff --git a/include/rfl/bson/Reader.hpp b/include/rfl/bson/Reader.hpp index 104fcf9f..993b6209 100644 --- a/include/rfl/bson/Reader.hpp +++ b/include/rfl/bson/Reader.hpp @@ -143,7 +143,11 @@ struct Reader { return err; } } + } else { + return Error("Could not init the array iteration."); } + } else { + return Error("Could not init array."); } return std::nullopt; } @@ -160,7 +164,11 @@ struct Reader { const char* k = bson_iter_key(&iter); _object_reader.read(std::string_view(k), to_input_var(&iter)); } + } else { + return Error("Could not init the object iteration."); } + } else { + return Error("Could not init object."); } return std::nullopt; } diff --git a/include/rfl/cbor/Reader.hpp b/include/rfl/cbor/Reader.hpp index b6c3ee9f..5b364d5d 100644 --- a/include/rfl/cbor/Reader.hpp +++ b/include/rfl/cbor/Reader.hpp @@ -238,7 +238,7 @@ struct Reader { return err; } _buffer->resize(length + 1); - (*_buffer)[length] = '\0'; + _buffer->back() = '\0'; return cbor_value_copy_text_string(_ptr, _buffer->data(), &length, NULL); } };