Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Notes on quicktype #83

Open
bdarcus opened this issue May 6, 2023 · 0 comments
Open

Notes on quicktype #83

bdarcus opened this issue May 6, 2023 · 0 comments

Comments

@bdarcus
Copy link
Owner

bdarcus commented May 6, 2023

Quicktype seems to do a pretty good job of generating model code from JSON schemas to different languages, most notably Rust, Haskell, and Go.

It even includes parsing code in the generated code!

But I just realized it also has "experimental" support for direct conversion from typescript.

To assess, then, typescript-json-schema vs quicktype for:

  1. the JSON schemas
  2. other code

Basically, it may be possible to remove the first, and standardize on the second.

I'm trying to find some sort of library or tool that can programmatically evaluate schema quality and performance, but have not had any luck so far.

A quick grep for "$ref" shows equivalent numbers, but numbers for metadata properties are higher for quicktype. Need to check what that means.

Both validate the same.

But tjs has lots of annotation options to customize output. Does quicktype?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant