Skip to content

No way to validate webhook requests #445

Closed

Description

@SethThoburn

When validating requests, the library finds the schema to validate with by looking at the request url. This doesn't work for webhooks however, since these don't have the url they are going to in the spec. It would be nice if you could pass a path to the spec validator to override whatever it infers from the request, that way you could provide the location of the webhook spec.

Activity

  1. p1c2u commented on Dec 20, 2022

    @p1c2u
    Collaborator

    Hi @SethThoburn

    that's something I planned to do but first I need to make validators refactor. I added it to 0.17 roadmap.

  2. SethThoburn commented on Dec 20, 2022

    @SethThoburn
    Author

    Great, thanks. If anyone is looking for a workaround, I'm using the underlying openapi_schema_validator library to validate manually. You can pretty easily get the webhook schema by its name in your full spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions