json-string-schema-generator icon indicating copy to clipboard operation
json-string-schema-generator copied to clipboard

If Type Array is empty then it is failing.

Open rahulkamuni opened this issue 4 years ago • 2 comments

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 ?

rahulkamuni avatar Mar 09 '20 13:03 rahulkamuni