apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

request help: How to generate the apisix schema.json file

Open DokiDoki1103 opened this issue 1 year ago • 3 comments

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

DokiDoki1103 avatar Nov 27 '23 06:11 DokiDoki1103

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,

donghuuhieu137 avatar Nov 29 '23 10:11 donghuuhieu137

thank you ,I can test it

DokiDoki1103 avatar Nov 30 '23 03:11 DokiDoki1103

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.

github-actions[bot] avatar Feb 29 '24 01:02 github-actions[bot]

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.

github-actions[bot] avatar Mar 31 '24 01:03 github-actions[bot]