Giter VIP home page Giter VIP logo

Comments (4)

talves avatar talves commented on June 4, 2024 2

I discussed and gave a link to a schema in discord that I improved upon the link @martinjagodic linked above. Here is the file on github I used for a validator test I did in Rust (not relevant to the conversation). It might be a more complete schema than the one linked.

https://github.com/talves/json-schema-validator-example/blob/main/schema.json

Here is a link to a visualizer of the json: https://json-schema.app/view/%23?url=https%3A%2F%2Fraw.githubusercontent.com%2Ftalves%2Fjson-schema-validator-example%2Fmain%2Fschema.json

Note: This json schema follows draft 2020-12 which is the newest and not supported by a lot of online validators.

from decap-cms.

martinjagodic avatar martinjagodic commented on June 4, 2024

@FractalHQ there is room for improvement here for sure. This has been mentioned a few times recently on Discord and here.

Before anyone can start improving this there has to be a clear idea of what we want in this feature. So at this point, I ask you to define your idea in more detail and provide some examples.

Some resources:
schema: https://www.oxygenxml.com/samples/json-schema-documentation/netlify/oneFile/Netlify.html
advanced yaml (I use aliases all the time): https://www.educative.io/blog/advanced-yaml-syntax-cheatsheet

from decap-cms.

FractalHQ avatar FractalHQ commented on June 4, 2024

Thanks for the links @martinjagodic!

Is there a json file of that schema you linked in that html file? I could generate a typescript interface from json, and even provide the json schema to the YAML VSCode extension to solve the problem directly -- I'm hoping we can get autocomplete / intellisense based on the schema json directly in the config.yml file without any extra steps.

from decap-cms.

FractalHQ avatar FractalHQ commented on June 4, 2024

@talves you're a legend!! Giving that json file to the YAML extension is such a huge instant win 🥳

Screenshot 2023-12-07 at 4 25 53 PM

from decap-cms.

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.