Skip to content

Conversation

@Canop
Copy link
Owner

@Canop Canop commented Oct 22, 2025

Generate a JSON schema for the configuration files

Fix #372

Usage:

bacon --generate-config-schema > bacon.json

@joshka joshka mentioned this pull request Nov 2, 2025
@Canop Canop marked this pull request as ready for review November 3, 2025 07:01
Updates #397 with extra schema docs.
@Canop
Copy link
Owner Author

Canop commented Nov 4, 2025

@joshka Self-hosting looks more reliable than hosting at schemastore.org: I can have the update of the schema be part of the release deployment script.

So I'll have this directive at the top of default config files:

#:schema https://dystroy.org/bacon/.bacon.schema.json

As my tools usually accept previous versions of configuration files, I won't add a version suffix unless it really becomes necessary.

@Canop Canop merged commit 353c316 into main Nov 4, 2025
@joshka
Copy link
Contributor

joshka commented Nov 5, 2025

Nice! Thanks for pushing that through.

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 a jsonschema for config format to make config autocomplete

3 participants