From c1018ec72dc4f0a5504668cd78b3fba9fb3b8502 Mon Sep 17 00:00:00 2001 From: syamsudotdev Date: Mon, 13 May 2024 03:19:47 +0000 Subject: [PATCH] update json schema --- src/schemas/json/monika-config-schema.json | 30 +++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/src/schemas/json/monika-config-schema.json b/src/schemas/json/monika-config-schema.json index e4400ea10f7..1817e0d0444 100644 --- a/src/schemas/json/monika-config-schema.json +++ b/src/schemas/json/monika-config-schema.json @@ -1,6 +1,6 @@ { - "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://github.com/hyperjumptech/monika/main/monika-config-schema.json", + "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "urlFormat": { @@ -246,7 +246,17 @@ "type": "object", "additionalProperties": false, "required": ["url"], + "patternProperties": { + "ping": { "type": "boolean" } + }, "properties": { + "id": { + "title": "Id", + "type": "string", + "description": "Unique string identification of the request", + "examples": ["1"], + "default": "1" + }, "method": { "title": "HTTP Method", "type": "string", @@ -289,11 +299,6 @@ "alerts": { "$ref": "#/definitions/alerts" }, - "ping": { - "title": "Ping", - "type": "boolean", - "description": "If defined and to true, the request is an ICMP ping" - }, "allowUnauthorized": { "title": "AllowUnauthorized", "type": "boolean", @@ -302,6 +307,13 @@ "body": { "$ref": "#/definitions/body" }, + "followRedirects": { + "title": "Follow Redirects", + "description": "The request follows redirects as many times as specified here", + "type": "integer", + "examples": ["21"], + "default": "21" + }, "headers": { "$ref": "#/definitions/headers" } @@ -1315,6 +1327,12 @@ "examples": [30] } } + }, + "version": { + "type": "string", + "title": "Monika configuration version", + "description": "Monika configuration version", + "default": "1" } }, "type": "object"