Просмотр исходного кода

feat: add validations for emqx_ee_conf_schema

Zhongwen Deng 2 лет назад
Родитель
Сommit
a4bb865e6a

+ 1 - 1
lib-ee/emqx_ee_conf/src/emqx_ee_conf.app.src

@@ -1,6 +1,6 @@
 {application, emqx_ee_conf, [
     {description, "EMQX Enterprise Edition configuration schema"},
-    {vsn, "0.1.1"},
+    {vsn, "0.1.2"},
     {registered, []},
     {applications, [
         kernel,

+ 4 - 1
lib-ee/emqx_ee_conf/src/emqx_ee_conf_schema.erl

@@ -6,7 +6,7 @@
 
 -behaviour(hocon_schema).
 
--export([namespace/0, roots/0, fields/1, translations/0, translation/1]).
+-export([namespace/0, roots/0, fields/1, translations/0, translation/1, validations/0]).
 
 -define(EE_SCHEMA_MODULES, [emqx_license_schema, emqx_ee_schema_registry_schema]).
 
@@ -30,3 +30,6 @@ translations() ->
 
 translation(Name) ->
     emqx_conf_schema:translation(Name).
+
+validations() ->
+    emqx_conf_schema:validations().