Fixed JSON schemas
MODIFY
src/assets/schemas/chargingstation/chargingstation.json
src/assets/schemas/chargingstation/chargingstation.json
}
},
"tariffID": {
- "type": "string",
- "maxLength": 50,
- "sanitize": "sanitize"
+ "$ref": "common#/definitions/tariff-id"
}
},
"required": [

MODIFY
src/assets/schemas/common/common.json
src/assets/schemas/common/common.json
"pattern": "^(\\d\\|?)*$",
"sanitize": "mongo"
},
+ "tariff-id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 36,
+ "sanitize": "mongo",
+ "nullable": true
+ },
"authSubdomain": {
"type": "string",
"pattern": "^[a-z0-9]*$",

MODIFY
src/assets/schemas/site/site.json
src/assets/schemas/site/site.json
"sanitize": "mongo"
},
"tariffID": {
- "type": "string",
- "sanitize": "mongo"
+ "$ref": "common#/definitions/tariff-id"
},
"autoUserSiteAssignment": {
"type": "boolean",

MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"type": "boolean",
"example": false
},
+ "tariffID": {
+ "type": "string"
+ },
"siteAreaID": {
"type": "string",
"example": ""
"public": {
"type": "boolean"
},
+ "tariffID": {
+ "type": "string"
+ },
"siteAreaID": {
"type": "string"
},
"example": "L3"
}
}
+ },
+ "tariffID": {
+ "type": "string"
}
}
},

MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-parameters-update.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-parameters-update.json
}
},
"tariffID": {
- "type": "string",
- "maxLength": 50,
- "sanitize": "mongo"
+ "$ref": "common#/definitions/tariff-id"
}
},
"required": [

MODIFY
src/assets/server/rest/v1/schemas/setting/setting-ocpi-set.json
src/assets/server/rest/v1/schemas/setting/setting-ocpi-set.json
}
},
"tariffID": {
- "type": "string",
- "maxLength": 50,
- "sanitize": "mongo"
+ "$ref": "common#/definitions/tariff-id"
}
}
},

MODIFY
src/assets/server/rest/v1/schemas/site/site-create.json
src/assets/server/rest/v1/schemas/site/site-create.json
"$ref": "site#/definitions/public"
},
"tariffID": {
- "$ref": "site#/definitions/tariffID"
+ "$ref": "common#/definitions/tariff-id"
},
"autoUserSiteAssignment": {
"$ref": "site#/definitions/autoUserSiteAssignment"

MODIFY
src/assets/server/rest/v1/schemas/site/site-update.json
src/assets/server/rest/v1/schemas/site/site-update.json
"$ref": "site#/definitions/public"
},
"tariffID": {
- "$ref": "site#/definitions/tariffID"
+ "$ref": "common#/definitions/tariff-id"
},
"autoUserSiteAssignment": {
"$ref": "site#/definitions/autoUserSiteAssignment"

Fixed JSON schemas