Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sr/json: support drafts 201909 and 202012 with jsoncons #21473

Merged
merged 5 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ fetch_dep(rapidjson
TAG 14a5dd756e9bef26f9b53d3b4eb1b73c6a1794d5
SOURCE_SUBDIR redpanda_build)

FetchContent_Declare(jsoncons
URL https://github.com/danielaparker/jsoncons/archive/ffd2540bc9cfb54c16ef4d29d80622605d8dfbe8.tar.gz
URL_HASH MD5=8984d54668cdeb924fe1e37ea8dcc236
OVERRIDE_FIND_PACKAGE)

fetch_dep(unordered_dense
REPO https://github.com/redpanda-data/unordered_dense
TAG 9338f301522a965309ecec58ce61f54a52fb5c22
Expand Down Expand Up @@ -142,7 +147,8 @@ FetchContent_MakeAvailable(
wasmtime
hdrhistogram
ada
unordered_dense)
unordered_dense
jsoncons)

add_library(Crc32c::crc32c ALIAS crc32c)
add_library(aklomp::base64 ALIAS base64)
Expand Down
1 change: 1 addition & 0 deletions licenses/third_party.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ please keep this up to date with every new library use.
| fmt | BSD |
| HdrHistogram | BSD 2 |
| hwloc | BSD |
| jsoncons | Boost Software License Version 1.0 |
| krb5 | MIT |
| libcxx | Apache License 2 |
| libcxxabi | Apache License 2 |
Expand Down
2 changes: 2 additions & 0 deletions src/v/pandaproxy/schema_registry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ seastar_generate_swagger(

find_package(Protobuf REQUIRED)
find_package(Avro)
find_package(jsoncons REQUIRED)

v_cc_library(
NAME pandaproxy_schema_registry
Expand Down Expand Up @@ -39,6 +40,7 @@ v_cc_library(
Boost::iostreams
protobuf::libprotobuf
protobuf::libprotoc
jsoncons
)

add_subdirectory(test)
Expand Down
Loading