Migrate the plugin options validation to be schema-based
cometkim opened this issue · comments
Hyeseong Kim commented
Currently, this plugin is using custom validation logic (which is not pretty) for the plugin options and provides type definition separately.
I recently realized that Gatsby already has an API for it.
https://www.gatsbyjs.com/docs/node-apis/#pluginOptionsSchema
It can be migrated to the schema-based validation
Hyeseong Kim commented
This has been done in v3 and will be released soon