Giter Site home page Giter Site logo

Comments (6)

yavko avatar yavko commented on June 10, 2024

Yaml also has a schema, and maybe others do too

from ironbar.

LeSnake04 avatar LeSnake04 commented on June 10, 2024

Taplo is a toml lsp but it uses json schemas to define lints, so json might be enough

from ironbar.

LeSnake04 avatar LeSnake04 commented on June 10, 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

from ironbar.

yavko avatar yavko commented on June 10, 2024

Found a library for this https://graham.cool/schemars/

from ironbar.

JakeStanger avatar JakeStanger commented on June 10, 2024

Happy to add this, hopefully it should be a relatively straightforward build step to produce and export the schema.

Taplo is a toml lsp but it uses json schemas to define lints, so json might be enough

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.

from ironbar.

JakeStanger avatar JakeStanger commented on June 10, 2024

I'm now generating and hosting schemas, meaning you can now add

"$schema": "https://f.jstanger.dev/github/ironbar/schema.json",

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.

from ironbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.