gradle-swagger-generator-plugin icon indicating copy to clipboard operation
gradle-swagger-generator-plugin copied to clipboard

Selective api generation generates models of other apis

Open misrakli opened this issue 3 years ago • 1 comments

Hi,

Given an openapi spec with multiple APIs, I'm trying to generate code (api and corresponding models) just for a specific API.

components = [apis: 'MyTaggedApi', apiDocs: false, models: true]

While this works fine for API classes, models=true will generated all models for every API in the openapi spec.

Is this really intended that way and is selective model generation for a specific API by listing all classes for that API, like models=ModelA, ModelB (the list can be long here) the only way to solve this?

Thanks in advance for suggestions.

misrakli avatar May 05 '21 09:05 misrakli

I am also interested in this.

john-kramer-bill avatar Nov 10 '23 22:11 john-kramer-bill