alexandrehtrb / Pororoca

An API testing tool with support for HTTP/2 and HTTP/3. Alternative to Postman.
https://pororoca.io
Other
500 stars 38 forks source link

Recursive variables #119

Open alexandrehtrb opened 2 months ago

alexandrehtrb commented 2 months ago

A value could reference another variable, like:

Key Value
FirstName John
LastName McClane
FullName {{ FirstName }} {{ LastName }}

FullName should output John McClane

Method to change

https://github.com/alexandrehtrb/Pororoca/blob/a61920148b5ebedeb920ddcada177121205278d3/src/Pororoca.Domain/Features/VariableResolution/IPororocaVariableResolver.cs#L50

and unit tests

https://github.com/alexandrehtrb/Pororoca/blob/a61920148b5ebedeb920ddcada177121205278d3/tests/Pororoca.Domain.Tests/Features/VariableResolution/IPororocaVariableResolverTests.cs#L7