Go to file
Arpit Mohan 29c7b7cc01 Merge branch 'feature/mustache-key-extraction' into 'master'
Extract mustache keys from action object

When an action is created, we extract the mustache keys from various parts of the action and save it in the field `jsonPathKeys`. This same thing also happens in the update flow.

Since mustache library doesn't have an extraction function, we use a regex template to extract those keys.

We also modify the data type of the `body` parameter in the `ActionConfiguration` to String. This is because there are reserved characters that are not allowed as Mongo keys but are valid JSON keys. Converting to a string will remove all these problems.

Fixes #31 

See merge request theappsmith/internal-tools-server!58
2019-11-05 10:40:09 +00:00
app/server Converting actionConfiguration to a string to extract mustache keys 2019-11-05 10:40:09 +00:00