Skip to content
Snippets Groups Projects
Commit 8a169630 authored by Jovana Vuleta's avatar Jovana Vuleta
Browse files

NAT-8: JSON schemas in public read-only repository

parent 63593f39
No related branches found
No related tags found
No related merge requests found
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "http://example.com/example.json",
"type": "array",
"default": {},
"title": "Root Schema",
"required": [
"system_syslog_files"
],
"properties": {
"system_syslog_files": {
"type": "array",
"default": [],
"title": "The system_syslog_files Schema",
"items": {
"type": "object",
"title": "A Schema",
"required": [
"filename",
"facilities",
"archive_options",
"match",
"structured_data"
],
"properties": {
"filename": {
"type": "string",
"title": "The filename Schema"
},
"facilities": {
"type": "array",
"title": "The facilities Schema",
"items": {
"type": "object",
"title": "A Schema",
"required": [
"name",
"level"
],
"properties": {
"name": {
"type": "string",
"title": "The name Schema"
},
"level": {
"type": "string",
"title": "The level Schema"
}
}
}
},
"archive_options": {
"type": "object",
"title": "The archive_options Schema",
"required": [
"files",
"size"
],
"properties": {
"files": {
"type": "integer",
"title": "The files Schema"
},
"size": {
"type": "string",
"title": "The size Schema"
}
}
},
"match": {
"type": "string",
"title": "The match Schema"
},
"structured_data": {
"type": "string",
"default": "",
"title": "The structured_data Schema"
}
}
}
}
}
}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "http://example.com/example.json",
"type": "array",
"default": {},
"title": "Root Schema",
"required": [
"system_syslog_servers"
],
"properties": {
"system_syslog_servers": {
"type": "array",
"default": [],
"title": "The system_syslog_servers Schema",
"items": {
"type": "object",
"title": "A Schema",
"required": [
"address",
"facilities",
"match",
"source_address",
"structured_data"
],
"properties": {
"address": {
"type": "string",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$",
"title": "The address Schema"
},
"facilities": {
"type": "array",
"title": "The facilities Schema",
"items": {
"type": "object",
"title": "A Schema",
"required": [
"name",
"level"
],
"properties": {
"name": {
"type": "string",
"title": "The name Schema"
},
"level": {
"type": "string",
"title": "The level Schema"
}
}
}
},
"match": {
"type": "string",
"title": "The match Schema"
},
"source_address": {
"type": "string",
"title": "The source_address Schema"
},
"structured_data": {
"type": "string",
"default": "",
"title": "The structured_data Schema"
}
}
}
}
}
}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "http://example.com/example.json",
"type": "string",
"default": {},
"title": "Root Schema",
"required": [
"system_syslog_source_address"
],
"properties": {
"system_syslog_source_address": {
"type": "string",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$",
"default": "",
"title": "The system_syslog_source_address Schema"
}
}
}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "http://example.com/example.json",
"type": "string",
"default": {},
"title": "Root Schema",
"required": [
"system_time_zone"
],
"properties": {
"system_time_zone": {
"type": "string",
"default": "",
"title": "The system_time_zone Schema"
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment