Skip to content

How to bundle multiple JSON schemas into a single typescript file? #2458

Answered by kriswest
x12a1f asked this question in Q&A
Discussion options

You must be logged in to vote

I believe there is a bug in command line argument handling for the source type (-s) flag when passing a directory of files so we pass each schema file individually and use a command line script to make that easier (reads the dir and constructs the command with the files it finds): https://github.com/finos/FDC3/blob/master/s2tQuicktypeUtil.js

Perhaps all you needed to know is that you can append multiple source schema files to the end of your command line call, with a specified output file, and they will all output into it.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by x12a1f
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