You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/gatsby-plugin-utils/README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
npm install gatsby-plugin-utils
7
7
```
8
8
9
-
### validateOptionsSchema
9
+
### `validateOptionsSchema`
10
10
11
-
The `validateOptionsSchema` function verifies that the proper data types of options were passed into a plugin from the `gatsby-config` file. It is called internally by Gatsby to validate each plugin's options when a site is started.
11
+
The `validateOptionsSchema` function verifies that the proper data types of options were passed into a plugin from the `gatsby-config.js` file. It is called internally by Gatsby to validate each plugin's options when a site is started.
12
12
13
13
#### Example
14
14
@@ -18,9 +18,9 @@ import { validateOptionsSchema } from "gatsby-plugin-utils"
Utility to validate and test plugin options schemas. An example of a plugin options schema implementation can be found in the [gatsby-node.js file of gatsby-plugin-google-analytics](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-utils).
23
+
Utility to validate and test plugin options schemas. An example of a plugin options schema implementation can be found in the [`gatsby-node.js` file of `gatsby-plugin-google-analytics`](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-google-analytics/src/gatsby-node.js).
24
24
25
25
#### Example
26
26
@@ -31,7 +31,7 @@ import { testPluginOptionsSchema } from "gatsby-plugin-utils"
31
31
it(`should partially validate one value of a schema`, async () => {
0 commit comments