json-string-schema-generator
json-string-schema-generator copied to clipboard
If Type Array is empty then it is failing.
For Example if my input JSON is below : { "metadata": { "properties": [] } } Then schema is not generating properly . we are getting below exception "main" java.lang.NullPointerException. Because in code we have taken directly node = jsonNode.get(key).get(0);
Do you have any solution for this ?