chore: fix OpenAPI validation errors (#24858)
This commit is contained in:
parent
641f1996e2
commit
8d2b606043
1 changed files with 69 additions and 69 deletions
|
|
@ -34,7 +34,7 @@ paths:
|
|||
password:
|
||||
$ref: "#/components/schemas/Password"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
headers:
|
||||
Set-Cookie:
|
||||
|
|
@ -44,7 +44,7 @@ paths:
|
|||
example: >-
|
||||
auth=ey...qY; Path=/; Expires=Fri, 04 Apr 2025 14:35:37 GMT;
|
||||
HttpOnly; SameSite=Strict
|
||||
401:
|
||||
"401":
|
||||
description: Invalid password provided
|
||||
/auth/logout:
|
||||
post:
|
||||
|
|
@ -54,7 +54,7 @@ paths:
|
|||
tags:
|
||||
- auth
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
headers:
|
||||
Set-Cookie:
|
||||
|
|
@ -77,9 +77,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/ChangePassword"
|
||||
responses:
|
||||
202:
|
||||
"202":
|
||||
description: Success
|
||||
400:
|
||||
"400":
|
||||
description: Invalid password provided
|
||||
/auth/status:
|
||||
get:
|
||||
|
|
@ -89,7 +89,7 @@ paths:
|
|||
tags:
|
||||
- auth
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
text/plain:
|
||||
|
|
@ -110,7 +110,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/enable"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/BooleanResult"
|
||||
/batterygridchargelimit:
|
||||
delete:
|
||||
|
|
@ -122,7 +122,7 @@ paths:
|
|||
tags:
|
||||
- battery
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NullResult"
|
||||
/batterygridchargelimit/{cost}:
|
||||
post:
|
||||
|
|
@ -136,7 +136,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/costLimit"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/batterymode:
|
||||
delete:
|
||||
|
|
@ -146,7 +146,7 @@ paths:
|
|||
tags:
|
||||
- battery
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/BatteryModeResult"
|
||||
/batterymode/{batteryMode}:
|
||||
post:
|
||||
|
|
@ -158,7 +158,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/batteryMode"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/BatteryModeResult"
|
||||
/buffersoc/{soc}:
|
||||
post:
|
||||
|
|
@ -172,7 +172,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/soc"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/bufferstartsoc/{soc}:
|
||||
post:
|
||||
|
|
@ -186,7 +186,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/soc"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/health:
|
||||
get:
|
||||
|
|
@ -196,7 +196,7 @@ paths:
|
|||
tags:
|
||||
- general
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
text/plain:
|
||||
|
|
@ -216,7 +216,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/enable"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/BooleanResult"
|
||||
/loadpoints/{id}/disable/delay/{delay}:
|
||||
post:
|
||||
|
|
@ -231,7 +231,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/delay"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NanoSecondsResult"
|
||||
/loadpoints/{id}/disable/threshold/{threshold}:
|
||||
post:
|
||||
|
|
@ -246,7 +246,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/threshold"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/enable/delay/{delay}:
|
||||
post:
|
||||
|
|
@ -261,7 +261,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/delay"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NanoSecondsResult"
|
||||
/loadpoints/{id}/enable/threshold/{threshold}:
|
||||
post:
|
||||
|
|
@ -276,7 +276,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/threshold"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/limitenergy/{energy}:
|
||||
post:
|
||||
|
|
@ -291,7 +291,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/energy"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/limitsoc/{soc}:
|
||||
post:
|
||||
|
|
@ -306,7 +306,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/soc"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/maxcurrent/{current}:
|
||||
post:
|
||||
|
|
@ -319,7 +319,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/current"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/mincurrent/{current}:
|
||||
post:
|
||||
|
|
@ -332,7 +332,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/current"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/mode/{mode}:
|
||||
post:
|
||||
|
|
@ -347,7 +347,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/mode"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -369,9 +369,9 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/phases"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
400:
|
||||
"400":
|
||||
description: "Invalid phases-value. You have most likely entered the value 0 for a wallbox that cannot switch phases automatically."
|
||||
/loadpoints/{id}/plan:
|
||||
get:
|
||||
|
|
@ -385,7 +385,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -413,7 +413,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/EmptyResult"
|
||||
/loadpoints/{id}/plan/energy/{energy}/{timestamp}:
|
||||
post:
|
||||
|
|
@ -429,7 +429,7 @@ paths:
|
|||
- $ref: "#/components/parameters/energy"
|
||||
- $ref: "#/components/parameters/timestamp"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -454,7 +454,7 @@ paths:
|
|||
- $ref: "#/components/parameters/hourMinuteTime"
|
||||
- $ref: "#/components/parameters/timezone"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/PlanRatesResult"
|
||||
/loadpoints/{id}/plan/static/preview/soc/{soc}/{timestamp}:
|
||||
get:
|
||||
|
|
@ -470,7 +470,7 @@ paths:
|
|||
- $ref: "#/components/parameters/soc"
|
||||
- $ref: "#/components/parameters/timestamp"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/PlanRatesResult"
|
||||
/loadpoints/{id}/plan/static/preview/energy/{energy}/{timestamp}:
|
||||
get:
|
||||
|
|
@ -486,7 +486,7 @@ paths:
|
|||
- $ref: "#/components/parameters/energy"
|
||||
- $ref: "#/components/parameters/timestamp"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/PlanRatesResult"
|
||||
/loadpoints/{id}/priority/{priority}:
|
||||
post:
|
||||
|
|
@ -508,7 +508,7 @@ paths:
|
|||
type: integer
|
||||
minimum: 0
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/IntegerResult"
|
||||
/loadpoints/{id}/smartcostlimit:
|
||||
delete:
|
||||
|
|
@ -522,7 +522,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NullResult"
|
||||
/loadpoints/{id}/smartcostlimit/{cost}:
|
||||
post:
|
||||
|
|
@ -537,7 +537,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/costLimit"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/smartfeedinprioritylimit:
|
||||
delete:
|
||||
|
|
@ -549,7 +549,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NullResult"
|
||||
/loadpoints/{id}/smartfeedinprioritylimit/{cost}:
|
||||
post:
|
||||
|
|
@ -562,7 +562,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/costLimit"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/loadpoints/{id}/vehicle:
|
||||
delete:
|
||||
|
|
@ -576,7 +576,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/EmptyResult"
|
||||
patch:
|
||||
operationId: startLoadpointVehicleDetection
|
||||
|
|
@ -589,7 +589,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/EmptyResult"
|
||||
/loadpoints/{id}/vehicle/{name}:
|
||||
post:
|
||||
|
|
@ -604,7 +604,7 @@ paths:
|
|||
- $ref: "#/components/parameters/id"
|
||||
- $ref: "#/components/parameters/vehicleName"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -628,7 +628,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/soc"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/residualpower/{power}:
|
||||
post:
|
||||
|
|
@ -642,7 +642,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/power"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/smartfeedinprioritylimit:
|
||||
delete:
|
||||
|
|
@ -652,7 +652,7 @@ paths:
|
|||
tags:
|
||||
- general
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NullResult"
|
||||
/smartfeedinprioritylimit/{cost}:
|
||||
post:
|
||||
|
|
@ -664,7 +664,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/costLimit"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/session/{id}:
|
||||
parameters:
|
||||
|
|
@ -689,7 +689,7 @@ paths:
|
|||
loadpoint:
|
||||
$ref: "#/components/schemas/LoadpointName"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
delete:
|
||||
operationId: deleteSession
|
||||
|
|
@ -700,7 +700,7 @@ paths:
|
|||
tags:
|
||||
- sessions
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NullResult"
|
||||
/sessions:
|
||||
get:
|
||||
|
|
@ -740,7 +740,7 @@ paths:
|
|||
type: integer
|
||||
example: 2025
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -766,9 +766,9 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/enable"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/BooleanResult"
|
||||
400:
|
||||
"400":
|
||||
description: Sponsorship required
|
||||
/smartcostlimit:
|
||||
delete:
|
||||
|
|
@ -778,7 +778,7 @@ paths:
|
|||
tags:
|
||||
- general
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NullResult"
|
||||
/smartcostlimit/{cost}:
|
||||
post:
|
||||
|
|
@ -790,7 +790,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/costLimit"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/NumberResult"
|
||||
/state:
|
||||
get:
|
||||
|
|
@ -815,7 +815,7 @@ paths:
|
|||
value: .loadpoints[0]
|
||||
summary: only first loadpoint
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -852,7 +852,7 @@ paths:
|
|||
enum:
|
||||
- txt
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -868,7 +868,7 @@ paths:
|
|||
description: Download txt-file
|
||||
type: string
|
||||
format: binary
|
||||
401:
|
||||
"401":
|
||||
$ref: "#/components/responses/Unauthorized"
|
||||
/system/log/areas:
|
||||
get:
|
||||
|
|
@ -880,7 +880,7 @@ paths:
|
|||
tags:
|
||||
- system
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -889,7 +889,7 @@ paths:
|
|||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/LogAreas"
|
||||
401:
|
||||
"401":
|
||||
$ref: "#/components/responses/Unauthorized"
|
||||
/system/shutdown:
|
||||
post:
|
||||
|
|
@ -901,9 +901,9 @@ paths:
|
|||
tags:
|
||||
- system
|
||||
responses:
|
||||
204:
|
||||
"204":
|
||||
$ref: "#/components/responses/BlankResponse"
|
||||
401:
|
||||
"401":
|
||||
$ref: "#/components/responses/Unauthorized"
|
||||
/tariff/{type}:
|
||||
get:
|
||||
|
|
@ -928,7 +928,7 @@ paths:
|
|||
- planner
|
||||
- solar
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -940,7 +940,7 @@ paths:
|
|||
properties:
|
||||
rates:
|
||||
$ref: "#/components/schemas/Rates"
|
||||
404:
|
||||
"404":
|
||||
description: Tariff not defined
|
||||
/vehicles/{name}/limitsoc/{soc}:
|
||||
post:
|
||||
|
|
@ -955,7 +955,7 @@ paths:
|
|||
- $ref: "#/components/parameters/vehicleName"
|
||||
- $ref: "#/components/parameters/soc"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/SocResult"
|
||||
/vehicles/{name}/minsoc/{soc}:
|
||||
post:
|
||||
|
|
@ -970,7 +970,7 @@ paths:
|
|||
- $ref: "#/components/parameters/vehicleName"
|
||||
- $ref: "#/components/parameters/soc"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/SocResult"
|
||||
/vehicles/{name}/plan/repeating:
|
||||
post:
|
||||
|
|
@ -992,7 +992,7 @@ paths:
|
|||
items:
|
||||
$ref: "#/components/schemas/RepeatingPlan"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -1015,7 +1015,7 @@ paths:
|
|||
parameters:
|
||||
- $ref: "#/components/parameters/vehicleName"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
$ref: "#/components/responses/EmptyResult"
|
||||
/vehicles/{name}/plan/soc/{soc}/{timestamp}:
|
||||
post:
|
||||
|
|
@ -1035,7 +1035,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/Precondition"
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
|
|
@ -1079,16 +1079,16 @@ components:
|
|||
vehicle:
|
||||
$ref: "#/components/schemas/VehicleName"
|
||||
odometer:
|
||||
type: number
|
||||
nullable: true
|
||||
type: "number"
|
||||
description: Vehicle odometer reading in kilometers
|
||||
meterStart:
|
||||
type: number
|
||||
nullable: true
|
||||
type: "number"
|
||||
description: Meter reading at start of charging session
|
||||
meterStop:
|
||||
type: number
|
||||
nullable: true
|
||||
type: "number"
|
||||
description: Meter reading at end of charging session
|
||||
chargedEnergy:
|
||||
type: number
|
||||
|
|
@ -1513,8 +1513,8 @@ components:
|
|||
properties:
|
||||
result:
|
||||
description: Value is always null
|
||||
type: object
|
||||
nullable: true
|
||||
type: "object"
|
||||
BlankResponse:
|
||||
description: Success - Blank response
|
||||
EmptyResult:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue