air icon indicating copy to clipboard operation
air copied to clipboard

Add JSON Schema for Configuration File

Open arhea opened this issue 1 year ago • 5 comments

IDE Extensions like Even Better TOML in VSCode use JSON Schema for validating TOML configurations. This pull request adds a JSON Schema for the .air.toml configuration file that can be placed in the root of projects.

This file can then be consumed by these extensions from the GitHub project.

arhea avatar Feb 20 '25 18:02 arhea

thank you, i wanna know, if we add more options, we need to change this file as well, right?

xiantang avatar Mar 05 '25 15:03 xiantang

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Mar 05 '25 15:03 codecov[bot]

Ah... I should've checked this repo first... I opened a PR to jsonschemastore to add this

rowan-gud avatar Mar 10 '25 03:03 rowan-gud

@xiantang thats my understanding

arhea avatar Mar 10 '25 21:03 arhea

Please someone accept this one, I can't see this.

image

drewdomi avatar Mar 12 '25 15:03 drewdomi

Are those required fields actually required? I was under the impression everything was optional. At least I don't have any problems running air with a completely empty config file.

@drewdomi: As a temporary workaround you can add this schema directive to the top of your .air.toml file:

#:schema https://raw.githubusercontent.com/air-verse/air/0a3f56961f682c08c2d012dbf828188b4e12e854/air.schema.json

or basically disable schema checking by setting it to "any":

#:schema https://json.schemastore.org/any.json

joekrill avatar Jun 25 '25 21:06 joekrill

Why this one is not getting approved ?

MrBns avatar Oct 21 '25 19:10 MrBns