Git Product home page Git Product logo

Comments (7)

chainlist avatar chainlist commented on June 17, 2024 1

This is a duplicate.

You can see my attempt made yesterday. Already done an MR. Maybe there is a few things to tweak like adding description though.

I think we can either work from yours or mine.

from jsoncanvas.

Mearman avatar Mearman commented on June 17, 2024 1

I've been diving deep into JSON Schema and OpenAPI specs recently. I think building the JSON Schema from TypeScript source is good for maintainability.
If there is an appetite for it I can transform this JSON to TS and set up the pipeline for programmatically generating the JSON Schema?
also relates to #4

from jsoncanvas.

mwadams avatar mwadams commented on June 17, 2024 1

Over in json-schema land we are warmly encouraging people to adopt 2020-12. Most draft7 specs translate trivially and you will be well positioned for vNext. There is now plenty of high quality tooling for most languages.

from jsoncanvas.

mwadams avatar mwadams commented on June 17, 2024

The interesting thing about this approach with the documentation in the schema like this is that we could generate the human-readable text from the schema.

from jsoncanvas.

mwadams avatar mwadams commented on June 17, 2024

I've been diving deep into JSON Schema and OpenAPI specs recently. I think building the JSON Schema from TypeScript source is good for maintainability. If there is an appetite for it I can transform this JSON to TS and set up the pipeline for programmatically generating the JSON Schema? also relates to #4

Interesting idea!

Couple of questions:

  • Which tool do you intend to use for the generation?
  • Does it support draft2020-12 (which is the current JSON Schema draft)
  • What are advantages over creating/editing JSON Schema documents (how do you validate that it is producing valid/useful schema?

from jsoncanvas.

Mearman avatar Mearman commented on June 17, 2024

I've experimented with pretty much every tool I can find. So it's dealer's choice. I've found Draft-07 to be a lot more widely supported still, but I have enough reliable tooling to support 2020-12. What are @kepano and @ericaxu's thoughts?

from jsoncanvas.

Mearman avatar Mearman commented on June 17, 2024

@mwadams for me the one downside is (as of writing) lack of support in VSCode for 2020-12

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.