Git Product home page Git Product logo

Comments (3)

nichtich avatar nichtich commented on September 26, 2024

This only makes sense if there can be multiple schemas and schema locations, depending on extensions, application profiles etc.

from jsoncanvas.

dolmen avatar dolmen commented on September 26, 2024

This also helps to document that a JSON Schema exists to validate the document. A text editor might use that to automatically enable linting.

from jsoncanvas.

abitwired avatar abitwired commented on September 26, 2024

I think it makes sense to define a $schema for the node objects. Most applications will want more complexity than a single text attribute on a node. Nodes often represent services or lambdas. Applications using the node API should be allowed to shove their own metadata inside the node for the data relevant to their application's purposes.

e.g., an application which uses the infinite canvas to manage an ETL process. Such an application would need more than a text node. They would likely need additional attributes for each node to help define each ETL process. With the existing API, there is no way to include those additional attributes.

The $schema attribute should not be required for import/export of .canvas files since that would hurt interoperability between projects. They should still be able to load the graph relationship of the nodes/edges without necessarily needing to understand the custom $schema used by a different application.

Is what I described within the scope of your suggestion @dolmen ?

from jsoncanvas.

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.