Skip to content

Feature Request - Refer to Value and Interpolate with Static Text #21

@ryandanielspmc

Description

@ryandanielspmc

It would be cool to be able to refer to a field value interpolated within static text:

  'genv.sites.code.with' = '#{regexify ''[a-c][1-3]''}',
  'genv.sites.url.matching' = 'http://#(sites.valuecode).com'

This is already possible with Faker expressions:

  'genv.topic.something.with' = 'xyz#{regexify ''[a-c][1-3]''}123'

In the top example, I used #() to differentiate from Faker interpolations. An idea of how it could be done, but not saying that it is the best way.

If there were a special syntax for splicing in values from other fields, it might not be necessary to have matching. The with could be something like:

'genv.topic.field.with' = 'ABC.#{regexify ''[a-c][1-3]''}.#(topic.value.other_field).XYZ',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions