Skip to content

Commit 4ec4214

Browse files
ref(uptime): Switch request_headers to a array of tuples (#334)
1 parent 2d98a9f commit 4ec4214

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
��subscription_id� d7629c6c82be4f679ee78a0d977856d2�url�http://sentry.io�interval_seconds�,�timeout_ms���request_method�POST�request_headers��Authorization�Bearer 12345�Content-Type�application/json�X-My-Custom-Header�example value�request_body�{"key": "value"}
1+
��subscription_id� d7629c6c82be4f679ee78a0d977856d2�url�http://sentry.io�interval_seconds�,�timeout_ms���request_method�POST�request_headers��Authorization�Bearer 12345�Content-Type�application/json�X-My-Custom-Header�example value�request_body�{"key": "value"}

schemas/uptime-configs.v1.schema.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
"type": "number",
1010
"enum": [60, 300, 600, 1200, 1800, 3600]
1111
},
12+
"RequestHeader": {
13+
"title": "request_header",
14+
"description": "An individual header, consisting of a name and value as a tuple.",
15+
"type": "array",
16+
"prefixItems": [
17+
{
18+
"title": "header_name",
19+
"type": "string"
20+
},
21+
{
22+
"title": "header_value",
23+
"type": "string"
24+
}
25+
]
26+
},
1227
"CheckConfig": {
1328
"title": "check_config",
1429
"description": "A message containing the configuration for a check to scheduled and executed by the uptime-checker.",
@@ -37,9 +52,9 @@
3752
},
3853
"request_headers": {
3954
"description": "Additional HTTP headers to send with the request",
40-
"type": "object",
41-
"additionalProperties": {
42-
"type": "string"
55+
"type": "array",
56+
"items": {
57+
"$ref": "#/definitions/RequestHeader"
4358
}
4459
},
4560
"request_body": {

0 commit comments

Comments
 (0)