feat(normalize): add normalization format support (string 'lowercase')
benjamin-allion opened this issue · comments
Details
Be able to normalize specific Json string fields to lowercase.
See #14
Example
const jsonData = { "lastname": "JOHNSON" }
const jsonSchema = { "fields": {
"type":"object",
"properties":{
"lastname":{
"type": "string",
"format": "lowercase"
}
}
};
const result = await JsonNodeNormalizer.normalize(jsonData, jsonSchema);
Result
{
"lastname": "johnson"
}
Acceptance Criterias
- See example
- Must be able to do the same thing on specific JsonPath
Done.
Done v.1.0.4.