0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-27 06:10:43 +00:00

Fix exporter schema to support multiple entries per file. ()

This commit is contained in:
Austin S. Hemmelgarn 2023-07-31 08:04:52 -04:00 committed by GitHub
parent 6bab67ff6c
commit 6ae2593a25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,20 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Netdata Agent data exporter metadata.", "title": "Netdata Agent data exporter metadata.",
"oneOf": [
{
"$ref": "#/$defs/entry"
},
{
"type": "array",
"minLength": 1,
"items": {
"$ref": "#/$defs/entry"
}
}
],
"$defs": {
"entry": {
"properties": { "properties": {
"id": { "id": {
"$ref": "./shared.json#/$defs/id" "$ref": "./shared.json#/$defs/id"
@ -41,4 +54,6 @@
"overview", "overview",
"setup" "setup"
] ]
}
}
} }