Skip to content

Commit

Permalink
add sample schemas, reduce minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
mnbf9rca authored Nov 10, 2023
1 parent 847a4a4 commit 103c723
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 19 deletions.
42 changes: 27 additions & 15 deletions ohme/ohme_minimum_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
"moneyCostTotal": {
"type": "number"
},
"batteryScore": {
"type": "number"
},
"batteryCycleUsePercent": {
"type": "integer"
},
"energyChargedTotalWh": {
"type": "integer"
},
Expand Down Expand Up @@ -99,15 +93,33 @@
]
},
"error": {
"type": [
"string",
"null"
]
},
"errors": {
"type": [
"string",
"null"
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"properties": {
"expected_charging_w": {
"type": "string"
},
"fallbackMsg": {
"type": "string"
},
"charging_w": {
"type": "string"
},
"msgType": {
"type": "string"
},
"msgId": {
"type": "string"
},
"msgSentTs": {
"type": "string"
}
}
}
]
},
"chargeDevice": {
Expand Down
2 changes: 1 addition & 1 deletion test/CALCULATING.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"sessionId": "charger_id",
"sessionId": "session_id_CALCULATING",
"mode": "CALCULATING",
"appliedRule": {
"id": null,
Expand Down
2 changes: 1 addition & 1 deletion test/DISCONNECTED.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"sessionId": "session_id",
"sessionId": "session_id_DISCONNECTED",
"mode": "DISCONNECTED",
"appliedRule": {
"id": "applied_rule_id",
Expand Down
2 changes: 1 addition & 1 deletion test/RETRIEVING_SOC.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"sessionId": "charger_id",
"sessionId": "session_id_RETRIEVING_SOC",
"mode": "RETRIEVING_SOC",
"appliedRule": {
"id": null,
Expand Down
2 changes: 1 addition & 1 deletion test/SMART_CHARGE.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"sessionId": "charger_id",
"sessionId": "session_id_SMART_CHARGE",
"mode": "SMART_CHARGE",
"appliedRule": {
"id": "applied_rule_id",
Expand Down

0 comments on commit 103c723

Please sign in to comment.