Skip to content

[core] Feature: add generation of missing functions with annotation processing #8

Open
@serpro69

Description

Example:

Add some new parameter to a dictionary's category:

    name #this exists in name.yml for example
      strange_name: ["Some gibberish", "More gibberish"]

Annotation processor should generate the following code:

#NameExt.kt

val Name.strangeName = resolve { fakerService.resolve(it, "strange_name") }

After compiling should be possible to call:

Faker().name.strangeName() // => "Some gibberish"

This would particularly be useful if we want to add some extra category parameters without modifying the codebase

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    core 🧬Issue related to :core moduleenhancement 🚀New feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions