0

Currently the issue is we have to generate two openapi specs A and B both of which use the some common models defined in package C.

Package A and B contain some objects with the same name for e.g. 'GetQuestionDetails' but the definition of this object is different in pacakge A and B.

I tried two approaches with openapi model generation:

  1. Generate the model in different directories. This creates two copies of the common models defined in A and B.
  2. Generate the model in same directory then the one copy of common model is generated but the object with the same name are getting replaced.

So we were wondering if we can specify the directory for some of the openapi models while their generation so that the model GetQuestionDetails is generated in two directories A/GetQuestionDetails and B/GetQuestionDetails and rest of the common models in other single directory or the root directory?

0 Answers0