apisix-ingress-controller
apisix-ingress-controller copied to clipboard
request help: How to generate the apisix schema.json file
Issue description
Because I need to use a firewall plugin, which is a wasm plugin and is not defined in this file, it will generate an error message stating that the plugin cannot be found
ref: https://github.com/apache/apisix-ingress-controller/issues/2049
Environment
- your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
- your Kubernetes cluster version (output of kubectl version):
- if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a): apisix 3.7
you can manually create a schema.json and mount to /usr/local/apisix-dashboard/conf/schema.json in apisix-dashboard, here's what I'm using:
"coraza-filter": {
"schema": {
"type": "object",
"properties": {
"conf": {
"type": "object",
"properties":{
"directives_map": {
"type": "object",
"properties":{
"default": {
"type": "array"
}
}
},
"default_directives": {
"type": "string"
}
}
}
},
"$comment": "this is a mark for our injected plugin schema"
},
"version": 0.1,
thank you ,I can test it
This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.