{"action":"created","issue":{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/1401","repository_url":"https://api.github.com/repos/OAI/OpenAPI-Specification","labels_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/1401/labels{/name}","comments_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/1401/comments","events_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/1401/events","html_url":"https://github.com/OAI/OpenAPI-Specification/issues/1401","id":271420791,"number":1401,"title":"[v2.0 Question] Can `type` property in Schema Object be optional or not?","user":{"login":"taxpon","id":1885971,"avatar_url":"https://avatars0.githubusercontent.com/u/1885971?v=4","gravatar_id":"","url":"https://api.github.com/users/taxpon","html_url":"https://github.com/taxpon","followers_url":"https://api.github.com/users/taxpon/followers","following_url":"https://api.github.com/users/taxpon/following{/other_user}","gists_url":"https://api.github.com/users/taxpon/gists{/gist_id}","starred_url":"https://api.github.com/users/taxpon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taxpon/subscriptions","organizations_url":"https://api.github.com/users/taxpon/orgs","repos_url":"https://api.github.com/users/taxpon/repos","events_url":"https://api.github.com/users/taxpon/events{/privacy}","received_events_url":"https://api.github.com/users/taxpon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-06T10:11:12Z","updated_at":"2017-11-07T00:32:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Question\r\nCan `type` property in Schema Object be optional or not?\r\n\r\n### Detail\r\nI read though the [OpenAPI v2 Spec](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md) and [Json Schema document](http://json-schema.org/latest/json-schema-core.html) and I couldn't find the description that means `type` property in Schema Object can be optional. \r\n\r\nBut some examples in this repo do not have `type` property in Schema Object,  so I was confused a little. (For example [petstore.yaml](https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v2.0/yaml/petstore.yaml) and [uber.yaml](https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v2.0/yaml/uber.yaml))\r\n\r\nIs definition of `type` prop in Schema Object not required and if the definition is skipped, does it mean that the schema has`type: object` implicitly? I'd like to know this information from third party tools developer point of view."},"comment":{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/comments/342335101","html_url":"https://github.com/OAI/OpenAPI-Specification/issues/1401#issuecomment-342335101","issue_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/1401","id":342335101,"user":{"login":"taxpon","id":1885971,"avatar_url":"https://avatars0.githubusercontent.com/u/1885971?v=4","gravatar_id":"","url":"https://api.github.com/users/taxpon","html_url":"https://github.com/taxpon","followers_url":"https://api.github.com/users/taxpon/followers","following_url":"https://api.github.com/users/taxpon/following{/other_user}","gists_url":"https://api.github.com/users/taxpon/gists{/gist_id}","starred_url":"https://api.github.com/users/taxpon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taxpon/subscriptions","organizations_url":"https://api.github.com/users/taxpon/orgs","repos_url":"https://api.github.com/users/taxpon/repos","events_url":"https://api.github.com/users/taxpon/events{/privacy}","received_events_url":"https://api.github.com/users/taxpon/received_events","type":"User","site_admin":false},"created_at":"2017-11-07T00:32:23Z","updated_at":"2017-11-07T00:32:23Z","author_association":"CONTRIBUTOR","body":"@webron Thanks for your detail explanation 👍  I understood the specification clearly.\r\n\r\nMy concern: \r\nThe information you mentioned is not documented as far as I know. I think it should be described in OpenAPI Spec so that people like me will not have to ask the similar question here although the question may be not popular.\r\n\r\nWhat do you say?"}}
{"actor":{"display_login":"taxpon"}}