Skip to content

Commit

Permalink
sr/types: Introduce verbose flag and compatibility_result
Browse files Browse the repository at this point in the history
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
  • Loading branch information
oleiman authored and pgellert committed Aug 14, 2024
1 parent ba615d9 commit 3771501
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/v/pandaproxy/schema_registry/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ using is_deleted = ss::bool_class<struct is_deleted_tag>;
using default_to_global = ss::bool_class<struct default_to_global_tag>;
using force = ss::bool_class<struct force_tag>;
using normalize = ss::bool_class<struct normalize_tag>;
using verbose = ss::bool_class<struct verbose_tag>;

template<typename E>
std::enable_if_t<std::is_enum_v<E>, std::optional<E>>
Expand Down Expand Up @@ -534,6 +535,11 @@ from_string_view<compatibility_level>(std::string_view sv) {
.default_match(std::nullopt);
}

struct compatibility_result {
bool is_compat;
std::vector<ss::sstring> messages;
};

} // namespace pandaproxy::schema_registry

template<>
Expand Down

0 comments on commit 3771501

Please sign in to comment.