{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4326","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4326/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4326/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4326/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/4326","id":305212324,"number":4326,"title":"Divide API in public and private","user":{"login":"MartinMuzatko","id":2950505,"avatar_url":"https://avatars0.githubusercontent.com/u/2950505?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinMuzatko","html_url":"https://github.com/MartinMuzatko","followers_url":"https://api.github.com/users/MartinMuzatko/followers","following_url":"https://api.github.com/users/MartinMuzatko/following{/other_user}","gists_url":"https://api.github.com/users/MartinMuzatko/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinMuzatko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinMuzatko/subscriptions","organizations_url":"https://api.github.com/users/MartinMuzatko/orgs","repos_url":"https://api.github.com/users/MartinMuzatko/repos","events_url":"https://api.github.com/users/MartinMuzatko/events{/privacy}","received_events_url":"https://api.github.com/users/MartinMuzatko/received_events","type":"User","site_admin":false},"labels":[{"id":185046751,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/type:%20support","name":"type: support","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-14T15:37:33Z","updated_at":"2018-03-14T22:45:25Z","closed_at":null,"author_association":"NONE","body":"Hello.\r\n\r\nWe try to divide our swagger documentation in two parts. One for our internal documentation and one for consumers.\r\n\r\nWhat is the best way to go about this? We thought about providing two definitions, but maybe there is a YAML flag or whatever to do this. What also works, is that the relevant sections are hidden, before authentication.\r\n\r\nThanks in advance.\r\n\r\n| Q                               | A\r\n| ------------------------------- | -------\r\n| Bug or feature request?         |  Feature request\r\n| Which Swagger/OpenAPI version?  | 2.x\r\n| Which Swagger-UI version?       | 3.3.2\r\n| How did you install Swagger-UI? | I cloned the repo\r\n| Which browser & version?        | chrome 56\r\n| Which operating system?         | Windows\r\n\r\n```\r\nbuildTimestamp:\"Sat, 14 Oct 2017 04:42:59 GMT\"\r\ngitDirty:true\r\ngitRevision:\"gdd0c5227\"\r\nmachine:\"banjo\"\r\nversion:\"3.3.2\"\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/373200040","html_url":"https://github.com/swagger-api/swagger-ui/issues/4326#issuecomment-373200040","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4326","id":373200040,"user":{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T22:45:25Z","updated_at":"2018-03-14T22:45:25Z","author_association":"CONTRIBUTOR","body":"As an alternative to the above: the OpenAPI Specification describes a `Security filtering` concept, in which parts of an OpenAPI document are omitted unless a user provides the server with some sort of authentication: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#security-filtering\n\n"}}
{"actor":{"display_login":"shockey"}}