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

Coherent fake object support #600

Open
jvmlet opened this issue Feb 2, 2021 · 0 comments
Open

Coherent fake object support #600

jvmlet opened this issue Feb 2, 2021 · 0 comments

Comments

@jvmlet
Copy link

jvmlet commented Feb 2, 2021

It's impossible to generate the fake object with coherent fields
Consider below yml file :

en:
  faker:
    operating_system:
      win:
        name:
          - Windows
        version:
          - Vista
          - 7
          - 8
          - 10
      android:
        name :
          - Android
        version:
          - Pie
          - Lollilop
      any:
        - "#{win}"
        - "#{android}"

it would be great to be able to have :

@Getter @Setter
class OpertingSysytemPojo {
 private String name;
 private String version;
}
...
OpertingSysytemPojo os =  faker.operatingSystem().any().bind(OpertingSysytemPojo.class)
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

1 participant