Skip to content

Support transformation schema for YAML #512

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

Merged
merged 4 commits into from
Nov 4, 2022
Merged

Conversation

RVRhub
Copy link
Contributor

@RVRhub RVRhub commented Nov 1, 2022

The PR introduces yaml transformer.
An example of usage

Faker faker = new Faker();
System.out.println(
    new YamlTransformer<Name>().generate(
        faker.collection(faker::name).len(1).build(),
        Schema.of(field("name", Name::fullName), field("username", Name::username))));

Result:

name: Mabelle Prohaska
username: clara.lemke

@snuyanzin
Copy link
Collaborator

hi @RVRhub nice to see you here
thanks for your contribution
in general lgtm, i left a nit comment

@snuyanzin snuyanzin merged commit 4b40a03 into datafaker-net:main Nov 4, 2022
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

Successfully merging this pull request may close these issues.

2 participants