Software Alternatives & Reviews

Ultra-minimal JSON schemas with TypeScript inference

swagger.io quicktype
  1. Swagger is an open source RESTapi Documentation Tool.
    Pricing:
    • Open Source

    #API Tools #APIs #Documentation 81 social mentions

  2. Generate beautiful, typesafe code from data
    Pricing:
    • Open Source
    This looks really nice as an alternative to JSON schema, which is horribly verbose. Like using RELAX NG compact syntax for XML schemas back in the day, versus horrible verbose DTDs or XSDs. But I think the most natural way to express JSON schemas would be TypeScript type declarations. Is there a project that can take a TS type and generate a runtime parser/validator for it? I thought maybe Quicktype (https://quicktype.io/) was that, but it looks like it only takes JSON as input, not TS types.

    #Image Optimisation #Developer Tools #Image Editing 55 social mentions

Discuss: Ultra-minimal JSON schemas with TypeScript inference

Log in or Post with