dyne / restroom-mw

🛠 Easy REST API builder executing Zencode
https://restroom.dyne.org
GNU Affero General Public License v3.0
3 stars 11 forks source link

Redis mw behaviour if key doesn't exist #155

Closed andrea-dintino closed 2 years ago

andrea-dintino commented 2 years ago

C

The statement:

Given I read from redis the data under the key 'temp' and save the output into 'redisResult'

looks for a key named "temp", if key doesn't exist, it returns an error.

The problem with this is, with the current scripts I use, I need to manually create the key in redis, before I can run the scripts.

Possible solution: instead of returning an error, it should return something like:

{ "redisResult": {""}
}