You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: