Skip to content

Is it possible to generate model in multiple directories #4634

@mankr1981

Description

@mankr1981

We our model json's in multiple directory structure and wanted to check is there a possibility using code generator I can have my model classes in multiple directory using the name of schema folder.

For e.g. - we provide model package to generator but I want with that package it also add the folder name as well where the schema resides.
package input - com.schema.model
schema dirs - common, client, shared
when it generates, I want to have my packages like
com.schema.model.common
com.schema.model.client
com.schema.model.shared

before we were using jsonschema2pojo plugin which used to generate as above packages. but could not find if swagger generator supports it.

Any guidelines will be appreciated.
thanks

Swagger-codegen version
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues
Suggest a Fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions