Function Name | Payload Format | Base64 |
---|---|---|
ValidateJson |
- |
|
ValidateJsonBase64 |
x |
|
ValidateCsv |
- |
|
ValidateCsvBase64 |
x |
Type | Description | |
---|---|---|
Parameters |
||
Input |
const char* |
The actual data, either as JSON or CSV and possible encoded using Base64. Input type depends on the used function. |
MessageBuffer |
char * |
A buffer initialized by the caller which is used to write validation error messages back to the caller. |
MessageBufferSize |
unsigned long * |
The size of the MessageBuffer. The library needs it to check if the buffer is large enough to write the result message back. After the message is written, it contains the actual message length (actual size <= initial buffer size) |
Returns |
||
return code |
unsigned int |
0 = Success (passed data is valid)
100 = Technical Error
101 = Validation Error
102 = Parse Error |