Simplify the criteria to something like if (prop.type === 'array' && prop.items.type === 'object' ...) For https://github.com/n3ps/json-schema-to-jsdoc/pull/73