You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A couple of us have been looking into automatically-generating Rust AST code from the definitions here. We tried three different converters, but none of them provides any results.
It looks to me like the TS is tighter than the schema.
I ran into these sorts of issues when testing these tools; one of the reasons I switched to Rust (I'm using schemars to generate the schemas; that works very well).
EDIT: basically, I don't think you can rely on automatic schema generation in JS/Typescript; the schema will not match the code precisely.
A couple of us have been looking into automatically-generating Rust AST code from the definitions here. We tried three different converters, but none of them provides any results.
hellux/jotdown#17 (comment)
Here's what I get with quicktype from the json schema, but the same error with the typescript:
Which makes me wonder if there's something about the typescript definition, and/or the json schema conversion, that is causing these problems?
The text was updated successfully, but these errors were encountered: