Closed MikeRalphson closed 6 years ago
A more complete option (when available - it doesn't currently have this mode) would be to use the Mulesoft converter to round-trip through RAML 1.0
The first option works better than I expected (i.e. the output given a Petstore in 3.0 is valid 2.0). If anyone wants to pick this up, an example of the shim code is here https://gist.github.com/MikeRalphson/a14643b0731699516d9f8743ac59e643
Here's a first pass: https://github.com/LucyBot-Inc/api-spec-converter/pull/141
I went the other route and just edited the Angular code you found above to make it more friendly. We wouldn't be able to pull in new changes, but it seems a bit safer.
There's a MIT-licensed converter here.