{"action":"opened","issue":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1456","repository_url":"https://api.github.com/repos/go-swagger/go-swagger","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1456/labels{/name}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1456/comments","events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1456/events","html_url":"https://github.com/go-swagger/go-swagger/issues/1456","id":305555869,"number":1456,"title":"Collection Example Validation Issue","user":{"login":"Zehelein","id":9946441,"avatar_url":"https://avatars2.githubusercontent.com/u/9946441?v=4","gravatar_id":"","url":"https://api.github.com/users/Zehelein","html_url":"https://github.com/Zehelein","followers_url":"https://api.github.com/users/Zehelein/followers","following_url":"https://api.github.com/users/Zehelein/following{/other_user}","gists_url":"https://api.github.com/users/Zehelein/gists{/gist_id}","starred_url":"https://api.github.com/users/Zehelein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zehelein/subscriptions","organizations_url":"https://api.github.com/users/Zehelein/orgs","repos_url":"https://api.github.com/users/Zehelein/repos","events_url":"https://api.github.com/users/Zehelein/events{/privacy}","received_events_url":"https://api.github.com/users/Zehelein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T13:38:25Z","updated_at":"2018-03-15T13:38:25Z","closed_at":null,"author_association":"NONE","body":"## Problem statement\r\n\r\nWhen validating with the latest docker version the below swagger file it gives an error about missing \"type\".\r\n\r\n## Error\r\n\r\n```\r\n2018/03/15 13:34:42\r\nThe swagger spec at \"test.yaml\" showed up some valid but possiby unwanted constructs.\r\n2018/03/15 13:34:42 See warnings below:\r\n2018/03/15 13:34:42 - WARNING: type in definitions.collection.example is required\r\n\r\nThe swagger spec at \"test.yaml\" is invalid against swagger specification 2.0.\r\nSee errors below:\r\n- type in definitions.collection.example is required\r\n```\r\n\r\n## Swagger specification\r\n\r\n```\r\nswagger: '2.0'\r\ninfo:\r\n  title: Test\r\n  version: \"1.0.0\"\r\npaths:\r\n  /v1/collection:\r\n    post:\r\n      summary: Collection\r\n      tags: \r\n        - Collection\r\n      parameters:\r\n        - name: collection\r\n          in: body\r\n          required: true\r\n          schema:\r\n            $ref: '#/definitions/collection'\r\n      responses:\r\n        200:\r\n          description: success\r\n          schema:\r\n            type: string\r\ndefinitions:\r\n  collection:\r\n    type: object\r\n    required:\r\n      - id\r\n      - title\r\n      - items\r\n    properties:    \r\n      id:\r\n        type: string\r\n        description: The unique ID\r\n      title:\r\n        type: string\r\n        description: Title\r\n        minLength: 1\r\n        maxLength: 50\r\n      items:\r\n        type: array\r\n        description: Items\r\n        items: \r\n          type: string\r\n    example:\r\n      id: item1\r\n      title: Home\r\n      items:\r\n      - item2\r\n      - item3\r\n\r\n```\r\n\r\n## Steps to reproduce\r\n\r\n`docker run --rm -it -e GOPATH=$HOME/go:/go -v %cd%:/swagger -w /swagger quay.io/goswagger/swagger validate test.yaml`\r\n\r\n## Environment\r\nswagger version: 2.0\r\nlatest docker image\r\nRunning on Windows 10, Docker for Linux Containers"}}
{"actor":{"display_login":"Zehelein"}}