How do I generate from multiple schemas at the same time?
andrewducker opened this issue · 0 comments
Taking the JSON schema file from the Inheritance wiki page - if I wanted to split the various types into separate files (both for clarity and to be able to reuse them), how would I then specify that?
I tried various different variations on nswag jsonschema2tsclient /input:Container.json /input:Dog.json /output:Container.ts
with no success. (Container references Animal correctly, but obviously Dog isn't directly referenced by either, as it's a subtype of Animal.)
Similarly, if I have multiple different services all sharing types then I'm not going to want to produce different types with the same name in different output classes. How would I produce them all at once? (i.e. Container.json references Animal.json and also Pet.json references Animal.json - if I generate them as two calls then I'll end up with two Animal
classes, one in each output file)
Am I missing something really obvious?