Puresharper / Swagger4WCF

Swagger4WCF generate automatically swagger YAML to describe WCF services on build time
MIT License
11 stars 9 forks source link

Missing definitions in yaml #14

Open lvanput opened 4 years ago

lvanput commented 4 years ago

When datatypes in WCF contain nested classes, these classes don't make it to the definitions section of the yaml and swagger editor produces errors.

I've attached some fixes in a diff format that solves this a bit, but the proper solution would loop through the definitions list in a while loop until no further definitions are added anymore.

add_more_definitions.txt

NeloHuerta commented 3 years ago

Hi, is there any improvement in this issue? I'm experiencing the same problem, the only solution is to manually patch the generated yaml adding the missing definitions