{"action":"created","issue":{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/578","repository_url":"https://api.github.com/repos/OAI/OpenAPI-Specification","labels_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/578/comments","events_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/578/events","html_url":"https://github.com/OAI/OpenAPI-Specification/issues/578","id":135989869,"number":578,"title":"Schema object namespaces","user":{"login":"ikitommi","id":567532,"avatar_url":"https://avatars.githubusercontent.com/u/567532?v=3","gravatar_id":"","url":"https://api.github.com/users/ikitommi","html_url":"https://github.com/ikitommi","followers_url":"https://api.github.com/users/ikitommi/followers","following_url":"https://api.github.com/users/ikitommi/following{/other_user}","gists_url":"https://api.github.com/users/ikitommi/gists{/gist_id}","starred_url":"https://api.github.com/users/ikitommi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikitommi/subscriptions","organizations_url":"https://api.github.com/users/ikitommi/orgs","repos_url":"https://api.github.com/users/ikitommi/repos","events_url":"https://api.github.com/users/ikitommi/events{/privacy}","received_events_url":"https://api.github.com/users/ikitommi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T08:15:15Z","updated_at":"2016-02-24T16:17:59Z","closed_at":null,"body":"With 2.0, the schema object names in `definitions` clash easily. For example, there can be several `User` definitions in a codebase, and if all api-docs are squashed into a single open-api doc, those schema names will clash if there is no namespace information of the model.\r\n\r\nI propose a guide and a promotion how to manage namespaces with Schemas. Simplest thing would be to advise using full namespaced names with schemas, e.g. `myservice.reporting.User` & `mydomain.auth.User`. Client libs would do this automatically and tools like swagger-ui (openapi-ui?) would render those nicely. \r\n\r\nCurrently, the ui works with full names, but long names break the layout. And the swagger.json examples & client libs seem to enforce just the short names without namespaces."},"comment":{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/comments/188329487","html_url":"https://github.com/OAI/OpenAPI-Specification/issues/578#issuecomment-188329487","issue_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/578","id":188329487,"user":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T16:17:59Z","updated_at":"2016-02-24T16:17:59Z","body":"We might consider this as optional but ensure that client generators and UIs support it.  Previously we were not specific about the name of models in the definitions, and saw stuff like high-level characters."}}