Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

use pydantic built-in size validators #1048

Merged
merged 2 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions docs/webhook_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -367,6 +368,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -471,6 +474,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -532,6 +536,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down Expand Up @@ -707,6 +712,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -863,6 +870,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -1221,11 +1230,16 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"max_size": {
"default": 1000,
"maximum": 1000,
"minimum": 0,
"title": "Max Size",
"type": "integer"
},
"min_size": {
"default": 0,
"maximum": 1000,
"minimum": 0,
"title": "Min Size",
"type": "integer"
},
Expand Down Expand Up @@ -1944,6 +1958,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -1952,6 +1967,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -2056,6 +2073,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -2117,6 +2135,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down Expand Up @@ -2651,6 +2670,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -2659,6 +2679,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -2763,6 +2785,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -2824,6 +2847,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down Expand Up @@ -3149,6 +3173,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -3157,6 +3182,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -3261,6 +3288,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -3322,6 +3350,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down Expand Up @@ -3592,6 +3621,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -3600,6 +3630,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -3704,6 +3736,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -3765,6 +3798,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down Expand Up @@ -4009,6 +4043,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -4017,6 +4052,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -4121,6 +4158,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -4196,6 +4234,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down Expand Up @@ -4453,6 +4492,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -4461,6 +4501,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -4565,6 +4607,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -4626,6 +4669,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down Expand Up @@ -4732,11 +4776,16 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"max_size": {
"default": 1000,
"maximum": 1000,
"minimum": 0,
"title": "Max Size",
"type": "integer"
},
"min_size": {
"default": 0,
"maximum": 1000,
"minimum": 0,
"title": "Min Size",
"type": "integer"
},
Expand Down Expand Up @@ -5562,6 +5611,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -5926,6 +5977,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"check_retry_count": {
"minimum": 0,
"title": "Check Retry Count",
"type": "integer"
},
Expand All @@ -5934,6 +5986,8 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "string"
},
"duration": {
"maximum": 168,
"minimum": 1,
"title": "Duration",
"type": "integer"
},
Expand Down Expand Up @@ -6038,6 +6092,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"type": "boolean"
},
"target_timeout": {
"minimum": 1,
"title": "Target Timeout",
"type": "integer"
},
Expand Down Expand Up @@ -6113,6 +6168,7 @@ Each event will be submitted via HTTP POST to the user provided URL.
"properties": {
"count": {
"default": 1,
"minimum": 0,
"title": "Count",
"type": "integer"
},
Expand Down
Loading