refactor: export `schema_check` fn from schema registry
This commit is contained in:
parent
cde87bce66
commit
96ffc9b174
|
@ -266,7 +266,7 @@ evaluate_schema_check(Check, Validation, #message{payload = Data}) ->
|
||||||
[]
|
[]
|
||||||
end,
|
end,
|
||||||
try
|
try
|
||||||
emqx_schema_registry_serde:handle_rule_function(schema_check, [SerdeName, Data | ExtraArgs])
|
emqx_schema_registry_serde:schema_check(SerdeName, Data, ExtraArgs)
|
||||||
catch
|
catch
|
||||||
error:{serde_not_found, _} ->
|
error:{serde_not_found, _} ->
|
||||||
?TRACE(
|
?TRACE(
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
-export([
|
-export([
|
||||||
make_serde/3,
|
make_serde/3,
|
||||||
handle_rule_function/2,
|
handle_rule_function/2,
|
||||||
|
schema_check/3,
|
||||||
destroy/1
|
destroy/1
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue