You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/01 02:40:04 UTC

[GitHub] [apisix] spacewander commented on issue #4350: request help: 如何使用 _M.check_schema 方法?

spacewander commented on issue #4350:
URL: https://github.com/apache/apisix/issues/4350#issuecomment-851763323


   > cached_validator 方法的逻辑在哪里? 具体是用来做什么的? 是为了缓存验证结果吗?
   
   Function cached_validator is `create_validator` with the lrucache wrapper.
   
   > validator 方法的逻辑在哪里? 
   
   validator is generated by jsonschema
   
   > 这个是为了校验传入来的 JSON 实体与格式是否匹配?
   
   Yes
   
   > 如果直接返回 ok 会影响其他插件吗?
   
   No. Just affect the schema check of this plugin.
   
   > 配置格式验证后期会设计成只验证一次吗?比如只在注册插件的时候验证一次?
   
   We need to check the schema again each time the plugin configuration is changed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org