{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-contract/issues/704","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-contract","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-contract/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-contract/issues/704/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-contract/issues/704/events","html_url":"https://github.com/spring-cloud/spring-cloud-contract/issues/704","id":346662655,"node_id":"MDU6SXNzdWUzNDY2NjI2NTU=","number":704,"title":"./gradlew generateContractTests successful despite exception in parsing yaml-contracts","user":{"login":"srs-haw","id":6022343,"node_id":"MDQ6VXNlcjYwMjIzNDM=","avatar_url":"https://avatars0.githubusercontent.com/u/6022343?v=4","gravatar_id":"","url":"https://api.github.com/users/srs-haw","html_url":"https://github.com/srs-haw","followers_url":"https://api.github.com/users/srs-haw/followers","following_url":"https://api.github.com/users/srs-haw/following{/other_user}","gists_url":"https://api.github.com/users/srs-haw/gists{/gist_id}","starred_url":"https://api.github.com/users/srs-haw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srs-haw/subscriptions","organizations_url":"https://api.github.com/users/srs-haw/orgs","repos_url":"https://api.github.com/users/srs-haw/repos","events_url":"https://api.github.com/users/srs-haw/events{/privacy}","received_events_url":"https://api.github.com/users/srs-haw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T15:57:42Z","updated_at":"2018-08-01T15:57:42Z","closed_at":null,"author_association":"NONE","body":"When having an erroneous yaml-contract specification like\r\n```yaml\r\n    - path: $..firstName\r\n      type: by_regex\r\n      predERRORfined: only_alpha_unicode\r\n```\r\nthe execution of `./gradlew generateContractTests` leads to a `BUILD SUCCESSFUL` (just omitting the generation of this test).\r\n\r\n`./gradlew generateContractTests --debug` is showing an exception like:\r\n```\r\n17:48:07.442 [DEBUG] [org.springframework.cloud.contract.verifier.file.ContractFileScanner] \r\nException occurred while trying to convert the file\r\njava.lang.IllegalStateException: Exception occurred while processing the file [my yaml file]\r\n        at \r\norg.springframework.cloud.contract.verifier.converter.YamlContractConverter\r\n.convertFrom(YamlContractConverter.groovy:395)\r\n...\r\nCaused by: java.lang.IllegalArgumentException: Unrecognized field \"predERRORfined\" \r\n(class org.springframework.cloud.contract.verifier.converter.YamlContract$BodyTestMatcher), \r\nnot marked as ignorable (7 known properties: \"value\", \"minOccurrence\", \"path\", \"predefined\", \"type\", \r\n\"metaClass\", \"maxOccurrence\"])\r\n...\r\n```\r\nI am using Spring Cloud Contract 2.0.1.RELEASE version."}}
{"actor":{"display_login":"srs-haw"}}