only reuse profile for cp create request
MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingprofile-create.json
src/assets/server/rest/v1/schemas/chargingstation/chargingprofile-create.json
{
"title": "Create a Charging Profile",
- "$ref": "chargingstation.json#/definitions/chargingProfile"
+ "type": "object",
+ "properties": {
+ "chargingStationID": {
+ "$ref": "chargingstation.json#/definitions/id"
+ },
+ "connectorID": {
+ "$ref": "chargingstation.json#/definitions/connector/properties/connectorId"
+ },
+ "chargePointID": {
+ "$ref": "chargingstation.json#/definitions/chargePoint/properties/chargePointID"
+ },
+ "profile": {
+ "$ref": "chargingstation.json#/definitions/chargingProfile/properties/profile"
+ }
+ },
+ "required": [
+ "chargingStationID",
+ "profile"
+ ]
}

MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
}
},
"required": [
+ "id",
"chargingStationID",
"profile"
]

only reuse profile for cp create request