Hi,
I want to develop a new  APISIX plug-in for my scenario, but it's schema is 
more complex, the recommended way is to split it into multiple plug-ins or to 
keep one?
I want to get it form the schema file instead of initializing the table in it's 
file if recommend the latter.
Is there anything wrong or some risk in this way.

```
local prefix = ngx.config.prefix()
    local plugin_xsd_file = prefix .. "/conf/plugin.schema.json"
    local f = assert(io.open(cfg_file))
    local xsd_t = json.decode(assert(f:read('*a')))
    f:close()
    --local myvalidator = jsonschema.generate_validator(xsd_t)
```

thx~


88786...@qq.com

Reply via email to