Skip to content

Parsing JSON schema into TypeBox #421

Answered by sinclairzx81
Tydax asked this question in Q&A
Discussion options

You must be logged in to vote

@Tydax Hi, thanks for the kind words on TypeBox! :)

Um, at this stage, there are no immediate plans to support loading / parsing schemas from disk, but there are some considerations going into removing the [Kind] and [Modifier] symbols (which I'm not sure is possible, but if achieved, might make inroads into parsing structures from disk a bit more feasible). The problem currently is that once the schematic is serialized via Strict (or simply JSON.stringify()), associative static type information is lost and it's difficult to parse them back to their original type (as these Symbols encode all information related to the static type, which also has implications as to how the types compose at…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tydax
Comment options

Answer selected by Tydax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants