Git Product home page Git Product logo

Comments (3)

mattmccutchen avatar mattmccutchen commented on August 18, 2024

First of all: What third-party tools do you envision accessing .braids.json directly? We wouldn't want to encourage users to commit to tools that would make it difficult for them to upgrade to newer versions of Braid that change the configuration format.

Assuming we decide it is in fact in the community's best interests to have an official JSON schema for .braids.json: I'm not aware of an existing one; your web search is as good as mine. It won't be a priority for me to write a schema, but I imagine we would accept a contribution, and it sounds like you might be prepared to write one. Here's our informal documentation of the current format; I'll be happy to answer questions. Is there a best practice for where we put the schema in the repository?

from braid.

thorsten-klein avatar thorsten-klein commented on August 18, 2024

Thank you for your fast reply.

I am thinking about any tool which is based on the same information like braid, e.g. as most simple example I think about a python script analyzing the json files and drawing a dependency graph. Therefore it would be helpful to have a well-defined schema for the json file. This helps that the config file will be reused by other open source projects, instead of creating a new file with almost equal content, and as a result maybe a new standard is agreed. Of course the schema could/should then also be used by braid as a check to ensure an always valid json file.

I am compeletly new to ruby, so the implementation I am most likely not able to do. I try to have a look on the schema at the weekend and contribute. I will also check for best practices regarding the location.

from braid.

mattmccutchen avatar mattmccutchen commented on August 18, 2024

Drawing a dependency graph sounds reasonable. I don't think there's much chance of convincing Braid and other dependency management tools to migrate to a common format for their primary configuration since they all have different feature sets: that's why they are different tools in the first place. Extracting a subset of the data from the primary configuration of each tool into a common format for analysis would be more realistic.

To write a schema, you wouldn't have to write any Ruby. At most you might need to read a little Ruby in order to understand what Braid is doing. But the format is pretty straightforward and I suspect you can translate the comment I linked above to a JSON schema without much difficulty.

from braid.

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.