chore(bridge-v2): leave comment describing need for `nowarn_function`

This commit is contained in:
Andrew Mayorov 2024-05-28 10:31:14 +02:00
parent 663f4fd39f
commit c04aaad0a4
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,8 @@ unknown_bridge_schema(BridgeV2Type) ->
unknown_source_schema(SourceType) -> unknown_source_schema(SourceType) ->
erroneous_value_schema(SourceType, <<"unknown source type">>). erroneous_value_schema(SourceType, <<"unknown source type">>).
%% @doc Construct a schema that always emits validation error.
%% We need to silence dialyzer because inner anonymous function always throws.
-dialyzer({nowarn_function, [erroneous_value_schema/2]}). -dialyzer({nowarn_function, [erroneous_value_schema/2]}).
erroneous_value_schema(Value, Reason) -> erroneous_value_schema(Value, Reason) ->
hoconsc:mk(typerefl:any(), #{ hoconsc:mk(typerefl:any(), #{