JSON Schema with $ref to c#

Hi everyone. I’ve searched up and down for a tool that will take a set of JSON Schema files into consideration when converting to c# classes. I’ve found a lot of tools and many do a great job of converting a single Schema to c#. But if there are $ref to other JSON files I get a bunch of cleanup work. I thought I found a winner with NSwag, but it throws an error saying the directory for the ref is undefined, but there seems to be no where to define it.

I’ve written lots of DTOs by hand, but in this project I have all the Schema files and I’d really like to cut my workload down.

Appreciate any tips you can give. Thanks!

submitted by /u/Naphier
[link] [comments]

Leave a Reply