Hello community,
I am vuilding a pipeline that receives http requests providing a JSON payload in the body.
I want to validate the payload against a json schema. Now I have come accross this article which is interesting https://streamsets.com/blog/json-validator/.
I keep getting this error :
JSON_VAL_02 - The JSON object supplied is invalid: org.json.JSONException: Expected a ':' after a key at 6 tcharacter 7 line 1] |
When I check the record as json string checkbox, it raises the exception …
com.streamsets.pipeline.api.impl.TypeSupportConversionException: Cannot convert Map to com.streamsets.pipeline.api.impl.StringTypeSupport@374848a
Also with that processor component I am restricted as I would like to fetch the json schema from a repository.
I have tried using the javascript evaluator as well and also there I am running into trouble with library versions I believe …
Below the error I am getting …
Caused by: java.io.IOException: resource /draftv4/schema not found
Using libraries …
json-schema-core-1.2.5.jar
jackson-coreutils-1.8.jar
msg-simple-1.1.jar
json-simple-1.1.1.jar
guava-19.0.jar
json-schema-validator-2.2.6.jar
btf-1.2.jar
Looking forward to your feedback.
Greetings,
Hamid K.