Actually, SwaggerHub does support multiple files. The online editor doesn’t.
From: <[email protected]> on behalf of Torsten Berger <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Friday, September 8, 2017 at 12:09 To: Swagger <[email protected]> Subject: Code generation fails if Swagger definition is split into separate files I split a Swagger definition into separate files to get a better overview of the api and to define shared definitions only once. With the "paths" I didn't find a way to convert it to a separate file where the code generation doesn't fail. Since I couldn't find a way to reference the sepered files on "swaggerhub", I used the editor http://editor2.swagger.io instead. There I could enter the "Preferences" at "Pointer Resolution Base Path" the path to "http://localhost:8080". This also works and the separate file "persons. yaml" is loaded from the editor. Everything is fine for the editor, but the code generation fails. I'll add a simple example. It would be great if there is a solution where code generation works. Thanks for answer -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
