refactor: export `schema_check` fn from schema registry

This commit is contained in:
Thales Macedo Garitezi 2024-03-18 13:09:01 -03:00
parent cde87bce66
commit 96ffc9b174
2 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,7 @@ evaluate_schema_check(Check, Validation, #message{payload = Data}) ->
[]
end,
try
emqx_schema_registry_serde:handle_rule_function(schema_check, [SerdeName, Data | ExtraArgs])
emqx_schema_registry_serde:schema_check(SerdeName, Data, ExtraArgs)
catch
error:{serde_not_found, _} ->
?TRACE(

View File

@ -13,6 +13,7 @@
-export([
make_serde/3,
handle_rule_function/2,
schema_check/3,
destroy/1
]).