{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/312","labels_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/312/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/312/events","html_url":"https://github.com/swagger-api/swagger-spec/issues/312","id":64031020,"number":312,"title":"Vendor Extensions are not available on the Property level in the Swagger definitions","user":{"login":"lukastymo","id":1859969,"avatar_url":"https://avatars.githubusercontent.com/u/1859969?v=3","gravatar_id":"","url":"https://api.github.com/users/lukastymo","html_url":"https://github.com/lukastymo","followers_url":"https://api.github.com/users/lukastymo/followers","following_url":"https://api.github.com/users/lukastymo/following{/other_user}","gists_url":"https://api.github.com/users/lukastymo/gists{/gist_id}","starred_url":"https://api.github.com/users/lukastymo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukastymo/subscriptions","organizations_url":"https://api.github.com/users/lukastymo/orgs","repos_url":"https://api.github.com/users/lukastymo/repos","events_url":"https://api.github.com/users/lukastymo/events{/privacy}","received_events_url":"https://api.github.com/users/lukastymo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-24T15:48:20Z","updated_at":"2015-03-24T16:43:52Z","closed_at":"2015-03-24T16:30:08Z","body":"We use swagger to generate Api and Model. Recently new requirements emerged. It could be solved on the spec level, by providing metadata to our Definitions.\r\n\r\nOur spec looks like this:\r\n```\r\n{\r\n  \"paths\": \"...\r\n  \"definitions\": {\r\n    \"Person\": {\r\n       \"properties\": {\r\n           \"creditCardNumber\": {\r\n              \"type\": \"string\"\r\n            }\r\n        }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nNow we would like to add meta data for some of the fields, like this:\r\n\r\n```\r\n...\r\n\"creditCardNumber\": {\r\n   \"type\": \"string\",\r\n   \"x-group-metadata\": \"abc\"\r\n}\r\n```\r\n\r\nHaving this extra information we can use it in the generation phase, but it looks like vendor extensions are not possible in this level. \r\n\r\nSwagger-spec 2.0 supports vendor extension only on Info, Paths, Operation, Tag, Security objects.\r\n\r\nFor now the only possible (quick) workaround is to reuse an existing field:\r\n```\r\n\"creditCardNumber\": {\r\n   \"type\": \"string\",\r\n   \"title\": \"group-metadata=abc\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/comments/85593056","html_url":"https://github.com/swagger-api/swagger-spec/issues/312#issuecomment-85593056","issue_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/312","id":85593056,"user":{"login":"lukastymo","id":1859969,"avatar_url":"https://avatars.githubusercontent.com/u/1859969?v=3","gravatar_id":"","url":"https://api.github.com/users/lukastymo","html_url":"https://github.com/lukastymo","followers_url":"https://api.github.com/users/lukastymo/followers","following_url":"https://api.github.com/users/lukastymo/following{/other_user}","gists_url":"https://api.github.com/users/lukastymo/gists{/gist_id}","starred_url":"https://api.github.com/users/lukastymo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukastymo/subscriptions","organizations_url":"https://api.github.com/users/lukastymo/orgs","repos_url":"https://api.github.com/users/lukastymo/repos","events_url":"https://api.github.com/users/lukastymo/events{/privacy}","received_events_url":"https://api.github.com/users/lukastymo/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T16:43:52Z","updated_at":"2015-03-24T16:43:52Z","body":"Wrong title. The #241 is about Schema object, my case is on the Property level"}}