0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-06 22:38:55 +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#",
"type": "object",
"title": "Netdata Agent data exporter metadata.",
"properties": {
"id": {
"$ref": "./shared.json#/$defs/id"
"oneOf": [
{
"$ref": "#/$defs/entry"
},
"meta": {
"$ref": "./shared.json#/$defs/instance"
},
"keywords": {
"$ref": "./shared.json#/$defs/keywords"
},
"overview": {
"type": "object",
"description": "General information about the exporter.",
{
"type": "array",
"minLength": 1,
"items": {
"$ref": "#/$defs/entry"
}
}
],
"$defs": {
"entry": {
"properties": {
"exporter_description": {
"type": "string",
"description": "General description of what the exporter does."
"id": {
"$ref": "./shared.json#/$defs/id"
},
"exporter_limitations": {
"type": "string",
"description": "Explanation of any limitations of the exporter."
"meta": {
"$ref": "./shared.json#/$defs/instance"
},
"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": [
"exporter_description",
"exporter_limitations"
"id",
"meta",
"keywords",
"overview",
"setup"
]
},
"setup": {
"$ref": "./shared.json#/$defs/full_setup"
}
},
"required": [
"id",
"meta",
"keywords",
"overview",
"setup"
]
}
}