Incoming requests payload validation with JSON schemas (#135)
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / ErrorType.ts
index 4dd459d7bdc680077a7798d04fd8fe072bc7b4cb..e8762380b5872b9cddebc3d33f0f3075170dd834 100644 (file)
@@ -11,12 +11,13 @@ export enum ErrorType {
   SECURITY_ERROR = 'SecurityError',
   // Payload for Action is syntactically incorrect or not conform the PDU structure for Action
   FORMATION_VIOLATION = 'FormationViolation',
+  FORMAT_VIOLATION = 'FormatViolation',
   // Payload is syntactically correct but at least one field contains an invalid value
-  PROPERTY_RAINT_VIOLATION = 'PropertyraintViolation',
-  // Payload for Action is syntactically correct but at least one of the fields violates occurrence raints
-  OCCURRENCE_RAINT_VIOLATION = 'OccurrenceraintViolation',
-  // Payload for Action is syntactically correct but at least one of the fields violates data type raints (e.g. "somestring" = 12)
-  TYPERAINT_VIOLATION = 'TyperaintViolation',
+  PROPERTY_CONSTRAINT_VIOLATION = 'PropertyConstraintViolation',
+  // Payload for Action is syntactically correct but at least one of the fields violates occurrence constraints
+  OCCURRENCE_CONSTRAINT_VIOLATION = 'OccurrenceConstraintViolation',
+  // Payload for Action is syntactically correct but at least one of the fields violates data type constraints (e.g. "somestring" = 12)
+  TYPE_CONSTRAINT_VIOLATION = 'TypeConstraintViolation',
   // Any other error not covered by the previous ones
   GENERIC_ERROR = 'GenericError',
 }