Skip to content

Try improve code for configuration value references #127

@vajda

Description

@vajda

Currently, configuration support value references, for example:

user:
  firstName: Nick
  lastName: Smith
someField: $user.firstName

This feature is useful, but code implementing it can be improved. Both ValueExpressionParser and DataGenerator classes have same private method stripOffLastReference and logic for constructing full name and usage of '.' character is spread through these two classes. This should probably be moved into separate class which both classes would use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions