Debian Codegraph @

ocpp/v16/schemas/StopTransaction.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "title": "StopTransactionRequest",
4 "type": "object",
5 "properties": {
6 "idTag": {
7 "type": "string",
8 "maxLength": 20
9 },
10 "meterStop": {
11 "type": "integer"
12 },
13 "timestamp": {
14 "type": "string",
15 "format": "date-time"
16 },
17 "transactionId": {
18 "type": "integer"
19 },
20 "reason": {
21 "type": "string",
22 "additionalProperties": false,
23 "enum": [
24 "EmergencyStop",
25 "EVDisconnected",
26 "HardReset",
27 "Local",
28 "Other",
29 "PowerLoss",
30 "Reboot",
31 "Remote",
32 "SoftReset",
33 "UnlockCommand",
34 "DeAuthorized"
35 ]
36 },
37 "transactionData": {
38 "type": "array",
39 "items": {
40 "type": "object",
41 "properties": {
42 "timestamp": {
43 "type": "string",
44 "format": "date-time"
45 },
46 "sampledValue": {
47 "type": "array",
48 "items": {
49 "type": "object",
50 "properties": {
51 "value": {
52 "type": "string"
53 },
54 "context": {
55 "type": "string",
56 "additionalProperties": false,
57 "enum": [
58 "Interruption.Begin",
59 "Interruption.End",
60 "Sample.Clock",
61 "Sample.Periodic",
62 "Transaction.Begin",
63 "Transaction.End",
64 "Trigger",
65 "Other"
66 ]
67 },
68 "format": {
69 "type": "string",
70 "additionalProperties": false,
71 "enum": [
72 "Raw",
73 "SignedData"
74 ]
75 },
76 "measurand": {
77 "type": "string",
78 "additionalProperties": false,
79 "enum": [
80 "Energy.Active.Export.Register",
81 "Energy.Active.Import.Register",
82 "Energy.Reactive.Export.Register",
83 "Energy.Reactive.Import.Register",
84 "Energy.Active.Export.Interval",
85 "Energy.Active.Import.Interval",
86 "Energy.Reactive.Export.Interval",
87 "Energy.Reactive.Import.Interval",
88 "Power.Active.Export",
89 "Power.Active.Import",
90 "Power.Offered",
91 "Power.Reactive.Export",
92 "Power.Reactive.Import",
93 "Power.Factor",
94 "Current.Import",
95 "Current.Export",
96 "Current.Offered",
97 "Voltage",
98 "Frequency",
99 "Temperature",
100 "SoC",
101 "RPM"
102 ]
103 },
104 "phase": {
105 "type": "string",
106 "additionalProperties": false,
107 "enum": [
108 "L1",
109 "L2",
110 "L3",
111 "N",
112 "L1-N",
113 "L2-N",
114 "L3-N",
115 "L1-L2",
116 "L2-L3",
117 "L3-L1"
118 ]
119 },
120 "location": {
121 "type": "string",
122 "additionalProperties": false,
123 "enum": [
124 "Cable",
125 "EV",
126 "Inlet",
127 "Outlet",
128 "Body"
129 ]
130 },
131 "unit": {
132 "type": "string",
133 "additionalProperties": false,
134 "enum": [
135 "Wh",
136 "kWh",
137 "varh",
138 "kvarh",
139 "W",
140 "kW",
141 "VA",
142 "kVA",
143 "var",
144 "kvar",
145 "A",
146 "V",
147 "K",
148 "Celcius",
149 "Celsius",
150 "Fahrenheit",
151 "Percent"
152 ]
153 }
154 },
155 "additionalProperties": false,
156 "required": [
157 "value"
158 ]
159 }
160 }
161 },
162 "additionalProperties": false,
163 "required": [
164 "timestamp",
165 "sampledValue"
166 ]
167 }
168 }
169 },
170 "additionalProperties": false,
171 "required": [
172 "transactionId",
173 "timestamp",
174 "meterStop"
175 ]
176 }