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,44 +1,59 @@
{ {
"$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.",
"properties": { "oneOf": [
"id": { {
"$ref": "./shared.json#/$defs/id" "$ref": "#/$defs/entry"
}, },
"meta": { {
"$ref": "./shared.json#/$defs/instance" "type": "array",
}, "minLength": 1,
"keywords": { "items": {
"$ref": "./shared.json#/$defs/keywords" "$ref": "#/$defs/entry"
}, }
"overview": { }
"type": "object", ],
"description": "General information about the exporter.", "$defs": {
"entry": {
"properties": { "properties": {
"exporter_description": { "id": {
"type": "string", "$ref": "./shared.json#/$defs/id"
"description": "General description of what the exporter does."
}, },
"exporter_limitations": { "meta": {
"type": "string", "$ref": "./shared.json#/$defs/instance"
"description": "Explanation of any limitations of the exporter." },
"keywords": {
"$ref": "./shared.json#/$defs/keywords"
},
"overview": {
"type": "object",
"description": "General information about the exporter.",
"properties": {
"exporter_description": {
"type": "string",
"description": "General description of what the exporter does."
},
"exporter_limitations": {
"type": "string",
"description": "Explanation of any limitations of the exporter."
}
},
"required": [
"exporter_description",
"exporter_limitations"
]
},
"setup": {
"$ref": "./shared.json#/$defs/full_setup"
} }
}, },
"required": [ "required": [
"exporter_description", "id",
"exporter_limitations" "meta",
"keywords",
"overview",
"setup"
] ]
},
"setup": {
"$ref": "./shared.json#/$defs/full_setup"
} }
}, }
"required": [
"id",
"meta",
"keywords",
"overview",
"setup"
]
} }