SteveC
SteveC

Reputation: 16773

Merging common output from multiple JSON schema files

I have a number of JSON schema files and have used NSwagStudio to generate the C# client classes

Each output on it's own works fine, but unfortunately there are some common elements in each json file

Is there anyway to automatically merge the output?

... I could manually edit the various .cs files, but I want this to be process to be part of the automated build

Upvotes: 0

Views: 426

Answers (1)

Rico Suter
Rico Suter

Reputation: 11858

You can write your own little console app and use NJsonSchema/NSwag to read merge and generate code. There is no code for merging but i think it shouldnt be that complicated to implement...

Upvotes: 1

Related Questions