js-dxtools/webpack-validator

Why use Joi and not Ajv?

pksjce opened this issue · 4 comments

I found that webpack itself uses ajv with this JSON schema to validate it's configs.
If that is the case, why duplicate that using Joi? Was there any specific reason?

This library was mainly written half a year ago. Look at the history for webpack's internal schema definitions: https://github.com/webpack/webpack/commits/master/schemas
:)

Ah! That was a bit naive of me. Wouldn't this project be easier to update and maintain if it too used the same schema as webpack now?

It probably makes sense to deprecate this project soon now that webpack core does it. :)

He he. Cool. Got it!