Skip to content

[Feature]: Support for simple string manipulations in the field-level data generation #49

@gvensan

Description

@gvensan

Feature Description

Raised by community user

https://community.solace.com/t/local-event-feeds-reference-variables/4375

I set a value in the topic based off a enum array. In my payload I want to use that variable in the payload and concatenate it.
e.g. topic set
“orderno”: {
“schema”: {
“type”: “string”
},
“rule”: {
“name”: “orderno”,
“type”: “string”,
“group”: “StringRules”,
“rule”: “enum”,
“enum”: [
“38405802”,
“45937282”,
“23402384”,
“34802372”
]
}
},

In my payload I’m trying to do the following but the generator treats it as a static.

“callback”: {
“schema” : {
“type”: “string”
},
“rule”: {
“name”: “callback”,
“type”: “string”,
“group”: “StringRules”,
“rule”: “static”,
“static”: “https://acme.com/orders/${orderno}
}
},

current data generated = https://acme.com/orders/${orderno}
desired output = https://acme.com/orders/38405802

Use Case

Simple use cases like: concatenate, lowercase, uppercase (will be a good start)

Proposed Solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions