Skip to content

Commit

Permalink
update json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
syamsudotdev committed May 13, 2024
1 parent f578b00 commit c1018ec
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/schemas/json/monika-config-schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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"
}
Expand Down Expand Up @@ -1315,6 +1327,12 @@
"examples": [30]
}
}
},
"version": {
"type": "string",
"title": "Monika configuration version",
"description": "Monika configuration version",
"default": "1"
}
},
"type": "object"
Expand Down

0 comments on commit c1018ec

Please sign in to comment.