Refactored into a script using zod based on feedback

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2026-01-27 19:14:44 -06:00
parent ed3bcf377c
commit 4977f58b9a
6 changed files with 94 additions and 127 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ addedDate: # The date plugin added to directory E.g. '2022-10-01' quotes are req
You can validate your YAML file is correct by running the following from the root of the repo:
1. First run `yarn install`
2. Then run `yarn ajv validate -s microsite/data/plugin-schema.json -d "microsite/data/plugins/<plugin-name>.yaml" -c ajv-formats` where `<plugin-name>` is the name of your plugin
2. Then run `node ./scripts/verify-plugin-directory.js`
If there are any errors they will be listed and you will need to correct them. We run this same check as part of the CI.