Skip to content

Commit

Permalink
generate schema and validate example for new standard webhooks plugin (
Browse files Browse the repository at this point in the history
  • Loading branch information
lena-larionova authored Aug 14, 2024
1 parent 0880c50 commit 061fd3c
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/standard-webhooks/_3.8.x.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: standard-webhooks
config:
secret_v1: example-secret
63 changes: 63 additions & 0 deletions schemas/standard-webhooks/3.8.x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"fields": [
{
"consumer": {
"reference": "consumers",
"type": "foreign",
"description": "Custom type for representing a foreign key with a null value allowed.",
"eq": null
}
},
{
"protocols": {
"required": true,
"elements": {
"one_of": [
"grpc",
"grpcs",
"http",
"https"
],
"type": "string"
},
"type": "set",
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"description": "A set of strings representing HTTP protocols."
}
},
{
"config": {
"type": "record",
"fields": [
{
"secret_v1": {
"required": true,
"referenceable": true,
"description": "Webhook secret",
"type": "string",
"encrypted": true
}
},
{
"tolerance_second": {
"required": true,
"gt": -1,
"type": "integer",
"default": 300,
"description": "Tolerance of the webhook timestamp in seconds. If the webhook timestamp is older than this number of seconds, it will be rejected with a '400' response."
}
}
],
"required": true
}
}
],
"entity_checks": [

]
}

0 comments on commit 061fd3c

Please sign in to comment.