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. (#15649)
This commit is contained in:
parent
6bab67ff6c
commit
6ae2593a25
1 changed files with 47 additions and 32 deletions
|
@ -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"
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue