chore: update schema
This commit is contained in:
parent
3164881047
commit
0da536f68b
1 changed files with 64 additions and 3 deletions
67
schema.json
67
schema.json
|
|
@ -3,9 +3,20 @@
|
|||
"title": "EVCC configuration schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
"network": {
|
||||
"type": "object",
|
||||
"description": "Network",
|
||||
"properties": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"host": {
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"interval": {
|
||||
"$ref": "#/definitions/duration"
|
||||
|
|
@ -24,6 +35,45 @@
|
|||
"sponsortoken": {
|
||||
"type": "string"
|
||||
},
|
||||
"plant": {
|
||||
"type": "string"
|
||||
},
|
||||
"telemetry": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"database": {
|
||||
"type": "object",
|
||||
"description": "Database",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"dsn": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tariffs": {
|
||||
"type": "object",
|
||||
"description": "Tariffs",
|
||||
"properties": {
|
||||
"currency": {
|
||||
"type": "string"
|
||||
},
|
||||
"grid": {
|
||||
"description": "Grid tariff",
|
||||
"$ref": "#/definitions/typedObject"
|
||||
},
|
||||
"feedin": {
|
||||
"description": "Feed-in tariff",
|
||||
"$ref": "#/definitions/typedObject"
|
||||
},
|
||||
"planner": {
|
||||
"description": "Planner tariff",
|
||||
"$ref": "#/definitions/typedObject"
|
||||
}
|
||||
}
|
||||
},
|
||||
"chargers": {
|
||||
"type": "array",
|
||||
"description": "List of chargers",
|
||||
|
|
@ -240,6 +290,17 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"typedObject": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loglevel": {
|
||||
"enum": [
|
||||
"trace",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue