hi there I’m trying to add webhook in my config an...
# talk-kratos
i
hi there I’m trying to add webhook in my config and I’m quite confused because according the schema all is right but the pod does not start because of it here the part of my configuration
Copy code
selfservice:
  flows:
    login:
      before:
        hooks:
          - hook: "web_hook"
            config:
              url: "<http://webhook.kratos:8080/check-domain>"
              method: POST
              body: file:///kratos/webhook/check-domain.jsonnet
              can_interrupt: true
here the errors I get
Copy code
The configuration contains values or keys which are invalid:
selfservice.flows.login.before: map[hooks:[map[config:map[body:file:///kratos/webhook/check-domain.jsonnet can_interrupt:true method:POST url:<http://webhook.kratos:8080/check-domain>] hook:web_hook]]]
                                ^-- doesn't validate with "#/definitions/selfServiceBeforeLogin"

The configuration contains values or keys which are invalid:
selfservice.flows.login.before.hooks: [map[config:map[body:file:///kratos/webhook/check-domain.jsonnet can_interrupt:true method:POST url:<http://webhook.kratos:8080/check-domain>] hook:web_hook]]
                                      ^-- doesn't validate with "#/definitions/selfServiceHooks"

The configuration contains values or keys which are invalid:
selfservice.flows.login.before.hooks.0: map[config:map[body:file:///kratos/webhook/check-domain.jsonnet can_interrupt:true method:POST url:<http://webhook.kratos:8080/check-domain>] hook:web_hook]
                                        ^-- anyOf failed

The configuration contains values or keys which are invalid:
selfservice.flows.login.before.hooks.0: map[config:map[body:file:///kratos/webhook/check-domain.jsonnet can_interrupt:true method:POST url:<http://webhook.kratos:8080/check-domain>] hook:web_hook]
                                        ^-- doesn't validate with "#/definitions/selfServiceWebHook"

The configuration contains values or keys which are invalid:
selfservice.flows.login.before.hooks.0.config: map[body:file:///kratos/webhook/check-domain.jsonnet can_interrupt:true method:POST url:<http://webhook.kratos:8080/check-domain>]
                                               ^-- additionalProperties "can_interrupt" not allowed