Converting YANG to SWAGGER?

Has anyone played around with converting their YANG files to SWAGGER to document RESTful API’s and/or build test harnesses? I found an open-source Swagger plugin for pyang but it was buggy and could not ingest most of my yang files I’ve generated (they seem to make assumptions about the the use of the language/structure of your objects that may not be uniformly supported). Anyone played with converting to an intermediary format with pyang and then to Swagger? Looking for input from people that have tried this before… Thanks!

I haven’t used SWAGGER before but you can convert YANG to XSD using confdc --emit-xsd, and I believe SWAGGER can take XSD. Give it a shot!