You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
Thanks for your reply. For non-Empty array it is running properly . But We have huge JSON with lot of empty arrays. We are planning generated schema for empty arrays also.
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 ?
The text was updated successfully, but these errors were encountered: