Greetings, This subject is also of interest to me. We are using Spring. What I did was create a YAML file with common definitions and the API YAML files use $ref to those definitions. If I could generate the common definitions in a separate java project and refer to them when generating the API, it would be great.
On Friday, April 22, 2016 at 8:29:01 PM UTC-4, tony tam wrote: > > What language do you generate code for? You can typically use the > importMappings option to specify that instead of generating a class, you > simply use the supplied import. Depends on the target language, though. > > On Apr 18, 2016, at 7:57 AM, yael <[email protected] <javascript:>> > wrote: > > Hello, > We have multiple components that are using the same model and would like > to share the generated code between those components. > I know that I can include one YAML file into another, but that still > results in multiple copies of the same generated code, in different > packages. > Is there a way to refer to the code generated by one YAML file from other > YAML files? > thanks, Yael > > -- > 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] <javascript:>. > 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.
