Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use input as output for out-the-box sim #205

Open
colin-lamed opened this issue Aug 16, 2016 · 3 comments
Open

Use input as output for out-the-box sim #205

colin-lamed opened this issue Aug 16, 2016 · 3 comments
Labels

Comments

@colin-lamed
Copy link

If an input placeholder also appears as output placeholder, should out the box sim default to returning it?

For example, I have a query parameter which also appears in the response Location header. I have created a sim to do this, since the default behaviour is to ignore the input value, and generate a random response value.

@colin-lamed colin-lamed changed the title Use input in output for out the box sims Use input as output for out-the-box sim Aug 16, 2016
@rossajmcd
Copy link
Contributor

Can we make the assumption that the param means the same in both places ? Is it possible it could mean something different in the response ?

@colin-lamed
Copy link
Author

It's possible - but since we can always override with a sim, we should support the most probable.

Another example case could be including the resource id in the response that is used in the get url.

@rossajmcd
Copy link
Contributor

OK sounds sensible the former... trying to imagine the latter... but presumably this is a use case affecting you somehow so a sensible default behaviour would be good.

Shnick pushed a commit that referenced this issue Aug 19, 2016
Shnick pushed a commit that referenced this issue Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants