js-dxtools / webpack-validator

Validates your webpack config with Joi
MIT License
295 stars 29 forks source link

Why use Joi and not Ajv? #138

Closed pksjce closed 7 years ago

pksjce commented 7 years ago

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?

jonathanglasmeyer commented 7 years ago

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 :)

pksjce commented 7 years ago

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?

jonathanglasmeyer commented 7 years ago

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

pksjce commented 7 years ago

He he. Cool. Got it!