Plugin Options Validation #28177
Unanswered
mxstbr
asked this question in
Umbrella Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of
[email protected]
, plugins can define a schema to enforce a type for each of their options. Gatsby will validate that the options users pass match the schema to help them correctly set up their site.To learn more, check out the "How to validate plugin options" documentation.
How you can help
We need you to please add
pluginOptionsSchema
s to your own Gatsby plugins! Once your plugin has a schema, Gatsby can guarantee users it is configured correctly.If you're looking to contribute to Gatsby, we could also use your help converting the most popular plugins in our monorepo to have
pluginOptionsSchema
s.If you would like to help us:
pluginOptionsSchema
in the plugins' gatsby-node.js file (if it doesn't have one, create it) following the best practicesCore plugins
Beta Was this translation helpful? Give feedback.
All reactions