json-schema-normalizer
json-schema-normalizer copied to clipboard
reduce in resolveSchema undefined
replace reduce in func resolveSchema in loadSchemas.js with find: const foundSchema = jsonSchemas.reduce( (result, schema) => (schema.title === schemaName ? schema : undefined), undefined ) should be: const foundSchema = jsonSchemas.find(schema => schema.title === schemaName && schema);
reduce return last schema, than's not always a required result
no pull request, it's too long for me