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
* Add directory support
* updates
* reset vscode settings
* fixes on fixes
* complete glob and dir support
* add error check
* remove ?.
* use old node friendly methods
* bump @types/node
* actually add the package.json this time
* resolve pr comments
* add pathTransform test
* fix util test
* remove return and add documentation
`You have specified a single file ${argOut} output for a multi file input ${argIn}. This feature is not yet supported, refer to issue #272 (https://github.com/bcherny/json-schema-to-typescript/issues/272)`
@@ -221,3 +221,26 @@ export function escapeBlockComment(schema: JSONSchema) {
221
221
}
222
222
}
223
223
}
224
+
225
+
/*
226
+
the following logic determines the out path by comparing the in path to the users specified out path.
227
+
For example, if input directory MultiSchema looks like:
228
+
MultiSchema/foo/a.json
229
+
MultiSchema/bar/fuzz/c.json
230
+
MultiSchema/bar/d.json
231
+
And the user wants the outputs to be in MultiSchema/Out, then this code will be able to map the inner directories foo, bar, and fuzz into the intended Out directory like so:
0 commit comments