Skip to content

Commit

Permalink
Initial schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
suda committed May 25, 2019
1 parent ad52dcb commit 940bff1
Show file tree
Hide file tree
Showing 6 changed files with 429 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
16 changes: 16 additions & 0 deletions api/v1/connectors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"name": "Type 2",
"otherNames": ["IEC 62196", "Mennekes"],
"current": ["DC", "AC single-phase", "AC three-phase"],
"maxCurrent": 300,
"maxVoltage": 480
},
{
"name": "CCS Combo 2",
"otherNames": ["Combo CSS EU"],
"current": ["DC"],
"maxCurrent": 200,
"maxVoltage": 500
}
]
42 changes: 42 additions & 0 deletions api/v1/schema/connectors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://evdb.gaiagreen.tech/api/v1/schema/connectors.json",
"title": "Connectors",
"description": "Power connector types",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Name of the connector",
"type": "string"
},
"otherNames": {
"description": "Other names for the connector",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"current": {
"description": "Electric power current type",
"items": {
"type": "string",
"enum": ["DC", "AC single-phase", "AC three-phase"]
},
"uniqueItems": true,
"minItems": 1
},
"maxCurrent": {
"description": "Maximum current in amps",
"type": "number"
},
"maxVoltage": {
"description": "Maximum voltage in volts",
"type": "number"
}
},
"required": ["name", "current", "maxCurrent", "maxVoltage"]
}
}
Empty file added api/v1/schema/manufacturer.json
Empty file.
Loading

0 comments on commit 940bff1

Please sign in to comment.