X Tutup
Skip to content

docs: add JSON schema section to bot configuration#1018

Open
dotandev wants to merge 1 commit intoall-contributors:mainfrom
dotandev:main
Open

docs: add JSON schema section to bot configuration#1018
dotandev wants to merge 1 commit intoall-contributors:mainfrom
dotandev:main

Conversation

@dotandev
Copy link

@dotandev dotandev commented Feb 5, 2026

What: Added a new "JSON Schema" section to the Bot Configuration documentation.

Why: This helps users validate their .all-contributorsrc configuration file and provides auto-completion in compatible editors like VS Code, reducing setup errors.

How: Updated src/content/docs/bot/configuration.md to include an explanation of the schema available on SchemaStore and a code example showing how to add the $schema property.

Checklist:

  • Documentation
  • Ready to be merged
  • Added myself to contributors table.

I've verified the changes locally using npm run dev, and both npm run lint and npm run build pass.

closes #1012

@netlify
Copy link

netlify bot commented Feb 5, 2026

Deploy Preview for all-contributors ready!

Name Link
🔨 Latest commit 3700135
🔍 Latest deploy log https://app.netlify.com/projects/all-contributors/deploys/69848a279a1b1c00084c6ec2
😎 Deploy Preview https://deploy-preview-1018.staging.allcontributors.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@JimMadge JimMadge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs more work.

I don't think it is in the right section and it is missing an explanation of how to validate a configuration file against the schema, which is the most important thing to cover.


```json
{
"$schema": "https://www.schemastore.org/all-contributors.json",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this keyword is used in schema to specify which dialect is used. It might actually cause validation to fail as the schema doesn't expect this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right place to put this documentation. It might be better as a new page in the specification section.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I'd do that.

Comment on lines +19 to +22
Example `.all-contributorsrc` with `$schema` added:

```json
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a duplicate of the example file on the same page? I don't think it is necessary to write that twice.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add reference/guide to JSON schema in Schema Store

2 participants

X Tutup