Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add an option to do not generate duplicated classes with "_" symbol at the end, but add everything in one class #885

Open
etsybaev opened this issue Jul 2, 2018 · 2 comments

Comments

@etsybaev
Copy link

etsybaev commented Jul 2, 2018

Please provide an option to do not generate duplicated classes with "" at the end (like "Body.java, Body.java, Body__.java"), but add everything in one class (Body.java).

Example
Preconditions:

body{
"id":1,
"name":"John"
}

body{
"name":"Ann",
"registationDate": 2018-01-01
}

Expected generated java class:
Body.java that contains all of params, i.e. id, name and registationDate.

Thanks in advance!

@etsybaev etsybaev changed the title Please provide an option to do not generate duplicated classes with "_" symbol at the end, but add everything in one Please provide an option to do not generate duplicated classes with "_" symbol at the end, but add everything in one class Jul 2, 2018
@etsybaev etsybaev changed the title Please provide an option to do not generate duplicated classes with "_" symbol at the end, but add everything in one class Please add an option to do not generate duplicated classes with "_" symbol at the end, but add everything in one class Jul 2, 2018
@chungchi300
Copy link

Does it have any updates?

{
  "users":[
    {
      "name":"jeff chung", 
      "profile":{
        "name":"1.jpg"
      }
    },
    {
      "name":"Nicole", 
      "profile":{
        "name":"1.jpg",
        "alt":"my-newphew"
      }
    }
  ],
  "profile":{
     "name":"1.jpg",
        "alt":"my-newphew",
    "age":23
  }
}

it will generate Profile and Profile_.

@etsybaev , after 2 years, do you have any solution to it?

@etsybaev
Copy link
Author

etsybaev commented Oct 6, 2020

@etsybaev , after 2 years, do you have any solution to it?

To tell the truth, I didn't have a lot of time for solving at that time, so just used classes with "_". It was ugly, but I had a very strict deadline. So no, it's not solved yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants