{"action":"created","issue":{"url":"https://api.github.com/repos/intuit/karate/issues/78","repository_url":"https://api.github.com/repos/intuit/karate","labels_url":"https://api.github.com/repos/intuit/karate/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/intuit/karate/issues/78/comments","events_url":"https://api.github.com/repos/intuit/karate/issues/78/events","html_url":"https://github.com/intuit/karate/issues/78","id":232448752,"number":78,"title":"How to validate against Swagger API spec","user":{"login":"lazycodeninja","id":9709160,"avatar_url":"https://avatars1.githubusercontent.com/u/9709160?v=4","gravatar_id":"","url":"https://api.github.com/users/lazycodeninja","html_url":"https://github.com/lazycodeninja","followers_url":"https://api.github.com/users/lazycodeninja/followers","following_url":"https://api.github.com/users/lazycodeninja/following{/other_user}","gists_url":"https://api.github.com/users/lazycodeninja/gists{/gist_id}","starred_url":"https://api.github.com/users/lazycodeninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazycodeninja/subscriptions","organizations_url":"https://api.github.com/users/lazycodeninja/orgs","repos_url":"https://api.github.com/users/lazycodeninja/repos","events_url":"https://api.github.com/users/lazycodeninja/events{/privacy}","received_events_url":"https://api.github.com/users/lazycodeninja/received_events","type":"User","site_admin":false},"labels":[{"id":534240663,"url":"https://api.github.com/repos/intuit/karate/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-31T04:15:20Z","updated_at":"2017-07-27T02:37:48Z","closed_at":"2017-05-31T05:02:36Z","body":"I've written up an API specification into a Swagger YAML file.  I'm trying to work out how I would validate a response against this, from what I can see the only way I can do this is to code this in a separate Java class and use the Java interop to define a function that calls the method.  This looks a little bit messy, is there any other way that I've missed?"},"comment":{"url":"https://api.github.com/repos/intuit/karate/issues/comments/318241719","html_url":"https://github.com/intuit/karate/issues/78#issuecomment-318241719","issue_url":"https://api.github.com/repos/intuit/karate/issues/78","id":318241719,"user":{"login":"ptrthomas","id":915480,"avatar_url":"https://avatars0.githubusercontent.com/u/915480?v=4","gravatar_id":"","url":"https://api.github.com/users/ptrthomas","html_url":"https://github.com/ptrthomas","followers_url":"https://api.github.com/users/ptrthomas/followers","following_url":"https://api.github.com/users/ptrthomas/following{/other_user}","gists_url":"https://api.github.com/users/ptrthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/ptrthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptrthomas/subscriptions","organizations_url":"https://api.github.com/users/ptrthomas/orgs","repos_url":"https://api.github.com/users/ptrthomas/repos","events_url":"https://api.github.com/users/ptrthomas/events{/privacy}","received_events_url":"https://api.github.com/users/ptrthomas/received_events","type":"User","site_admin":false},"created_at":"2017-07-27T02:37:48Z","updated_at":"2017-07-27T02:37:48Z","body":"This is what you said:\r\n> running Karate will give me definite errors\r\n\r\nI would say this differently !\r\n> running Karate would successfully catch all the changes that could break clients of my API\r\n\r\nAny further questions :)\r\n\r\nBTW Swagger is actually problematic in practice because it depends on developers keeping the annotations / documentation accurate and up to date."}}
{"actor":{"display_login":"ptrthomas"}}