Fixed asset scheme
MODIFY
postman/EVSE.postman_collection.json
postman/EVSE.postman_collection.json
"header": [],
"body": {
"mode": "raw",
- "raw": "{\n \"name\": \"Updated asset\",\n \"siteAreaID\": \"{{siteAreaID}}\",\n \"assetType\": \"CO\",\n \"excludeFromSmartCharging\": true,\n \"variationThresholdPercent\": 100,\n \"fluctuationPercent\": null,\n \"staticValueWatt\": 2000,\n \"image\": \"\",\n \"dynamicAsset\": false,\n \"connectionID\": \"\",\n \"meterID\": \"\",\n \"usePushAPI\": false,\n \"coordinates\": [0, 0]\n}",
+ "raw": "{\n \"name\": \"Updated asset\",\n \"siteAreaID\": \"{{siteAreaID}}\",\n \"assetType\": \"CO\",\n \"excludeFromSmartCharging\": true,\n \"variationThresholdPercent\": 100,\n \"fluctuationPercent\": null,\n \"staticValueWatt\": 2000,\n \"image\": \"\",\n \"dynamicAsset\": false,\n \"connectionID\": \"\",\n \"meterID\": \"\",\n \"usesPushAPI\": false,\n \"coordinates\": [0, 0]\n}",
"options": {
"raw": {
"language": "json"

MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"meterID": {
"type": "string"
},
- "usePushAPI": {
+ "usesPushAPI": {
"type": "boolean"
},
"coordinates": {

MODIFY
src/assets/server/rest/v1/schemas/asset/asset-create.json
src/assets/server/rest/v1/schemas/asset/asset-create.json
"dynamicAsset": {
"$ref": "asset.json#/definitions/dynamicAsset"
},
- "usePushAPI": {
- "$ref": "asset.json#/definitions/usePushAPI"
+ "usesPushAPI": {
+ "$ref": "asset.json#/definitions/usesPushAPI"
},
"coordinates": {
"$ref": "asset.json#/definitions/coordinates"

MODIFY
src/assets/server/rest/v1/schemas/asset/asset-update.json
src/assets/server/rest/v1/schemas/asset/asset-update.json
"dynamicAsset": {
"$ref": "asset.json#/definitions/dynamicAsset"
},
- "usePushAPI": {
- "$ref": "asset.json#/definitions/usePushAPI"
+ "usesPushAPI": {
+ "$ref": "asset.json#/definitions/usesPushAPI"
},
"coordinates": {
"$ref": "asset.json#/definitions/coordinates"

MODIFY
src/assets/server/rest/v1/schemas/asset/asset.json
src/assets/server/rest/v1/schemas/asset/asset.json
"type": "boolean",
"sanitize": "mongo"
},
- "usePushAPI": {
+ "usesPushAPI": {
"type": "boolean",
"sanitize": "mongo"
},

Fixed asset scheme