{"action":"created","issue":{"url":"https://api.github.com/repos/concretesolutions/requestmatcher/issues/15","repository_url":"https://api.github.com/repos/concretesolutions/requestmatcher","labels_url":"https://api.github.com/repos/concretesolutions/requestmatcher/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/concretesolutions/requestmatcher/issues/15/comments","events_url":"https://api.github.com/repos/concretesolutions/requestmatcher/issues/15/events","html_url":"https://github.com/concretesolutions/requestmatcher/pull/15","id":269903813,"number":15,"title":"WIP: Adds the ability to add a dynamic value to a JSON","user":{"login":"cs-rafael-toledo","id":12820588,"avatar_url":"https://avatars3.githubusercontent.com/u/12820588?v=4","gravatar_id":"","url":"https://api.github.com/users/cs-rafael-toledo","html_url":"https://github.com/cs-rafael-toledo","followers_url":"https://api.github.com/users/cs-rafael-toledo/followers","following_url":"https://api.github.com/users/cs-rafael-toledo/following{/other_user}","gists_url":"https://api.github.com/users/cs-rafael-toledo/gists{/gist_id}","starred_url":"https://api.github.com/users/cs-rafael-toledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs-rafael-toledo/subscriptions","organizations_url":"https://api.github.com/users/cs-rafael-toledo/orgs","repos_url":"https://api.github.com/users/cs-rafael-toledo/repos","events_url":"https://api.github.com/users/cs-rafael-toledo/events{/privacy}","received_events_url":"https://api.github.com/users/cs-rafael-toledo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-31T10:15:40Z","updated_at":"2018-03-20T22:06:36Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/concretesolutions/requestmatcher/pulls/15","html_url":"https://github.com/concretesolutions/requestmatcher/pull/15","diff_url":"https://github.com/concretesolutions/requestmatcher/pull/15.diff","patch_url":"https://github.com/concretesolutions/requestmatcher/pull/15.patch"},"body":"Today, request matcher only allow you to load a request from a file, or adding a `MockResponse` directly. This PR adds a kind of templating, so you can replace it with a dynamic value. This is specially useful when dealing with dates in tests, or any type of value that needs to be different on each run of the test suit.\r\n\r\nSo, with this PR, you can add a fixture with a placeholder like this:\r\n```\r\n{\r\n  \"value\": \"{0}\"\r\n}\r\n```\r\n\r\nAnd then pass the value as a vararg:\r\n\r\n```java\r\nrule.addFixture(200, \"file.json\", \"dynamic\");\r\n```\r\n\r\nI didn't added tests yet as I would like to discuss this API design before.\r\nAny comments are welcome"},"comment":{"url":"https://api.github.com/repos/concretesolutions/requestmatcher/issues/comments/374773488","html_url":"https://github.com/concretesolutions/requestmatcher/pull/15#issuecomment-374773488","issue_url":"https://api.github.com/repos/concretesolutions/requestmatcher/issues/15","id":374773488,"user":{"login":"victorolinasc","id":376386,"avatar_url":"https://avatars2.githubusercontent.com/u/376386?v=4","gravatar_id":"","url":"https://api.github.com/users/victorolinasc","html_url":"https://github.com/victorolinasc","followers_url":"https://api.github.com/users/victorolinasc/followers","following_url":"https://api.github.com/users/victorolinasc/following{/other_user}","gists_url":"https://api.github.com/users/victorolinasc/gists{/gist_id}","starred_url":"https://api.github.com/users/victorolinasc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorolinasc/subscriptions","organizations_url":"https://api.github.com/users/victorolinasc/orgs","repos_url":"https://api.github.com/users/victorolinasc/repos","events_url":"https://api.github.com/users/victorolinasc/events{/privacy}","received_events_url":"https://api.github.com/users/victorolinasc/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T22:06:36Z","updated_at":"2018-03-20T22:06:36Z","author_association":"NONE","body":"Closing this in favor of #16 .\r\n"}}
{"actor":{"display_login":"victorolinasc"}}