Explorar el Código

chore(authz): update url type for authz schema

zhanghongtong hace 4 años
padre
commit
32eabf041e
Se han modificado 1 ficheros con 1 adiciones y 9 borrados
  1. 1 9
      apps/emqx_authz/src/emqx_authz_schema.erl

+ 1 - 9
apps/emqx_authz/src/emqx_authz_schema.erl

@@ -11,15 +11,7 @@
 
 
 -type action() :: publish | subscribe | all.
 -type action() :: publish | subscribe | all.
 -type permission() :: allow | deny.
 -type permission() :: allow | deny.
--type url() :: #{
-    scheme := http | https,
-    host := string(),
-    port := non_neg_integer(),
-    path => string(),
-    query => string(),
-    fragment => string(),
-    userinfo => string()
-}.
+-type url() :: emqx_http_lib:uri_map().
 
 
 -export([ structs/0
 -export([ structs/0
         , fields/1
         , fields/1