{"action":"created","issue":{"url":"https://api.github.com/repos/James-Messinger/swagger-parser/issues/97","repository_url":"https://api.github.com/repos/James-Messinger/swagger-parser","labels_url":"https://api.github.com/repos/James-Messinger/swagger-parser/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/James-Messinger/swagger-parser/issues/97/comments","events_url":"https://api.github.com/repos/James-Messinger/swagger-parser/issues/97/events","html_url":"https://github.com/James-Messinger/swagger-parser/issues/97","id":362948129,"node_id":"MDU6SXNzdWUzNjI5NDgxMjk=","number":97,"title":"OAS 3.0 Model Type Validation Not Accurate","user":{"login":"kand617","id":5092518,"node_id":"MDQ6VXNlcjUwOTI1MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/5092518?v=4","gravatar_id":"","url":"https://api.github.com/users/kand617","html_url":"https://github.com/kand617","followers_url":"https://api.github.com/users/kand617/followers","following_url":"https://api.github.com/users/kand617/following{/other_user}","gists_url":"https://api.github.com/users/kand617/gists{/gist_id}","starred_url":"https://api.github.com/users/kand617/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kand617/subscriptions","organizations_url":"https://api.github.com/users/kand617/orgs","repos_url":"https://api.github.com/users/kand617/repos","events_url":"https://api.github.com/users/kand617/events{/privacy}","received_events_url":"https://api.github.com/users/kand617/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-23T14:44:16Z","updated_at":"2018-09-24T04:37:34Z","closed_at":null,"author_association":"NONE","body":"There seems to be quite a few differences between the validation on editor.swagger.io and this library. \r\nOne such issue is as follows\r\n\r\nSPEC:\r\n\r\n```\r\nopenapi: \"3.0.0\"\r\ninfo:\r\n  version: 1.0.0\r\n  title: My API\r\n  description: The API for everything\r\nservers:\r\n  - url: http://localhost:8080/api\r\npaths:\r\n  /applications:\r\n    get:\r\n      summary: List all applications\r\n      operationId: get-all-applications\r\n      tags:\r\n        - Applications\r\n      responses:\r\n        '200':\r\n          description: A list of applications\r\n          content:\r\n            application/json:\r\n              schema:\r\n                $ref: '#/components/schemas/Application'\r\ncomponents:\r\n  schemas:\r\n    Application:\r\n      required:\r\n        - name\r\n        - email\r\n      properties:\r\n        applicationId:\r\n          type: string\r\n          description: Unique application reference\r\n        name:\r\n          type: string\r\n          description: Name of the application\r\n        email:\r\n          type: invalidtype\r\n          description: Email address of the main contact\r\n```\r\n\r\nSee how the type of email is `invalidtype`.  This spec seems to pass validation :("},"comment":{"url":"https://api.github.com/repos/James-Messinger/swagger-parser/issues/comments/423875472","html_url":"https://github.com/James-Messinger/swagger-parser/issues/97#issuecomment-423875472","issue_url":"https://api.github.com/repos/James-Messinger/swagger-parser/issues/97","id":423875472,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzg3NTQ3Mg==","user":{"login":"kand617","id":5092518,"node_id":"MDQ6VXNlcjUwOTI1MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/5092518?v=4","gravatar_id":"","url":"https://api.github.com/users/kand617","html_url":"https://github.com/kand617","followers_url":"https://api.github.com/users/kand617/followers","following_url":"https://api.github.com/users/kand617/following{/other_user}","gists_url":"https://api.github.com/users/kand617/gists{/gist_id}","starred_url":"https://api.github.com/users/kand617/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kand617/subscriptions","organizations_url":"https://api.github.com/users/kand617/orgs","repos_url":"https://api.github.com/users/kand617/repos","events_url":"https://api.github.com/users/kand617/events{/privacy}","received_events_url":"https://api.github.com/users/kand617/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T04:37:34Z","updated_at":"2018-09-24T04:37:34Z","author_association":"NONE","body":"I have been looking through the code and see that the validate function takes in a parsed object, the information about column and line are lost......\r\n\r\nWould you consider an approach where line and column numbers are present too? This would be useful for text editors, it would be able to highlight a particular line/column combination. "}}
{"actor":{"display_login":"kand617"}}