mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[GH-ISSUE #541] Feature: JSON Schema for Config #4396
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#4396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LeSnake04 on GitHub (Apr 14, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/541
Is your feature request related to a problem? Please describe.
Configuration files currently can only be checked for syntax errors with taplo
Describe the solution you'd like
Add an official syntax to the json schema store: https://taplo.tamasfe.dev/configuration/developing-schemas.html
Describe alternatives you've considered
None
Additional context
Pushing the json schema might also allow more lsps to check the config.
@yavko commented on GitHub (Apr 14, 2024):
Yaml also has a schema, and maybe others do too
@LeSnake04 commented on GitHub (Apr 15, 2024):
Taplo is a toml lsp but it uses json schemas to define lints, so json might be enough
@LeSnake04 commented on GitHub (Apr 15, 2024):
Im not 100% sure its possible to filter for ironbar/config.toml though. I couldnt find a json schema filtering by parent folder so far.
Edit: It Might be possible with regexmatch
@yavko commented on GitHub (Apr 15, 2024):
Found a library for this https://graham.cool/schemars/
@JakeStanger commented on GitHub (Apr 15, 2024):
Happy to add this, hopefully it should be a relatively straightforward build step to produce and export the schema.
Yes I'm pretty sure the other formats just adopted the JSON schema format, so that should tick all the boxes. Corn may or may not eventually receive support too.
@JakeStanger commented on GitHub (May 31, 2024):
I'm now generating and hosting schemas, meaning you can now add
to your JSON/YAML config to follow master.
For tagged releases, starting with 0.16.0 when that releases, you will be able to use
schema-v0.16.0.json.