{"action":"created","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/487","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/487/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/487/events","html_url":"https://github.com/domaindrivendev/Swashbuckle/issues/487","id":105825525,"number":487,"title":"Inheritance from Dynamic Object breaks schema generation","user":{"login":"ttarney","id":1713540,"avatar_url":"https://avatars.githubusercontent.com/u/1713540?v=3","gravatar_id":"","url":"https://api.github.com/users/ttarney","html_url":"https://github.com/ttarney","followers_url":"https://api.github.com/users/ttarney/followers","following_url":"https://api.github.com/users/ttarney/following{/other_user}","gists_url":"https://api.github.com/users/ttarney/gists{/gist_id}","starred_url":"https://api.github.com/users/ttarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttarney/subscriptions","organizations_url":"https://api.github.com/users/ttarney/orgs","repos_url":"https://api.github.com/users/ttarney/repos","events_url":"https://api.github.com/users/ttarney/events{/privacy}","received_events_url":"https://api.github.com/users/ttarney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T14:47:22Z","updated_at":"2015-09-10T15:25:22Z","closed_at":null,"body":"This filter\r\npublic class ProvideApiExampleFilter : ISchemaFilter\r\n    {\r\n        public void Apply(Schema schema, SchemaRegistry schemaRegistry, System.Type type)\r\n        {\r\n            // instantiate and get what properties this guy exposes\r\n            bool providesApiDocumentation = typeof (IProvideApiExample).IsAssignableFrom(type);\r\n            if (providesApiDocumentation)\r\n            {\r\n                IProvideApiExample i = (IProvideApiExample) Activator.CreateInstance(type);\r\n                List<ApiDocHelper> apiHelpers = i.ApiHelpers;\r\n\r\n                foreach (ApiDocHelper apiHelper in apiHelpers)\r\n                {\r\n                    schema.properties[apiHelper.PropertyName].example = apiHelper.PropertyValue;\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\nwill not recognize any type derived from DynamicObject\r\n\r\nworks fine:\r\npublic class Foo : IProvideApiExample\r\n{\r\n}\r\n\r\nno longer works\r\npublic class Foo : DynamicObject, IProvideApiExample\r\n{\r\n}\r\n\r\nThoughts?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/comments/139279555","html_url":"https://github.com/domaindrivendev/Swashbuckle/issues/487#issuecomment-139279555","issue_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/487","id":139279555,"user":{"login":"ttarney","id":1713540,"avatar_url":"https://avatars.githubusercontent.com/u/1713540?v=3","gravatar_id":"","url":"https://api.github.com/users/ttarney","html_url":"https://github.com/ttarney","followers_url":"https://api.github.com/users/ttarney/followers","following_url":"https://api.github.com/users/ttarney/following{/other_user}","gists_url":"https://api.github.com/users/ttarney/gists{/gist_id}","starred_url":"https://api.github.com/users/ttarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttarney/subscriptions","organizations_url":"https://api.github.com/users/ttarney/orgs","repos_url":"https://api.github.com/users/ttarney/repos","events_url":"https://api.github.com/users/ttarney/events{/privacy}","received_events_url":"https://api.github.com/users/ttarney/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T15:25:22Z","updated_at":"2015-09-10T15:25:22Z","body":"For now created a class around dynamicobject to get around this"}}