{"action":"created","issue":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/39","repository_url":"https://api.github.com/repos/NSwag/NSwag","labels_url":"https://api.github.com/repos/NSwag/NSwag/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/NSwag/NSwag/issues/39/comments","events_url":"https://api.github.com/repos/NSwag/NSwag/issues/39/events","html_url":"https://github.com/NSwag/NSwag/issues/39","id":133947619,"number":39,"title":"Swagger specification not validated by the schema.","user":{"login":"evrardp","id":13845954,"avatar_url":"https://avatars.githubusercontent.com/u/13845954?v=3","gravatar_id":"","url":"https://api.github.com/users/evrardp","html_url":"https://github.com/evrardp","followers_url":"https://api.github.com/users/evrardp/followers","following_url":"https://api.github.com/users/evrardp/following{/other_user}","gists_url":"https://api.github.com/users/evrardp/gists{/gist_id}","starred_url":"https://api.github.com/users/evrardp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evrardp/subscriptions","organizations_url":"https://api.github.com/users/evrardp/orgs","repos_url":"https://api.github.com/users/evrardp/repos","events_url":"https://api.github.com/users/evrardp/events{/privacy}","received_events_url":"https://api.github.com/users/evrardp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NSwag/NSwag/labels/discussion","name":"discussion","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-16T10:54:23Z","updated_at":"2016-05-04T14:53:10Z","closed_at":null,"body":"Dear,\r\n\r\nI'm doing some tests with the swagger specification generation from a web api assembly written in C#.\r\nI take the json output file generated by NSwagStudio, and I try to validate it against the Swagger 2.0 schema (https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\r\n\r\nIt fails and give me these errors :\r\n\r\nProperty 'Get' has not been defined and the schema does not allow additional properties.  Property 'typeName' has not been defined and the schema does not allow additional properties.  Property 'enumNames' has not been defined and the schema does not allow additional properties.  \r\n\r\nWhen using the Swagger Editor online, I receive the same messages.\r\n\r\nCould you please tell me what I'm doing wrong or how can I avoid this ?\r\n\r\nThanks for the info."},"comment":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/comments/216889971","html_url":"https://github.com/NSwag/NSwag/issues/39#issuecomment-216889971","issue_url":"https://api.github.com/repos/NSwag/NSwag/issues/39","id":216889971,"user":{"login":"aws-na-ss-usplu","id":17323767,"avatar_url":"https://avatars.githubusercontent.com/u/17323767?v=3","gravatar_id":"","url":"https://api.github.com/users/aws-na-ss-usplu","html_url":"https://github.com/aws-na-ss-usplu","followers_url":"https://api.github.com/users/aws-na-ss-usplu/followers","following_url":"https://api.github.com/users/aws-na-ss-usplu/following{/other_user}","gists_url":"https://api.github.com/users/aws-na-ss-usplu/gists{/gist_id}","starred_url":"https://api.github.com/users/aws-na-ss-usplu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws-na-ss-usplu/subscriptions","organizations_url":"https://api.github.com/users/aws-na-ss-usplu/orgs","repos_url":"https://api.github.com/users/aws-na-ss-usplu/repos","events_url":"https://api.github.com/users/aws-na-ss-usplu/events{/privacy}","received_events_url":"https://api.github.com/users/aws-na-ss-usplu/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T14:53:09Z","updated_at":"2016-05-04T14:53:09Z","body":"Novice: Our very small two cents **_;-)_**\r\n\r\nWe currently develop solutions in two worlds… LoopBack/Node.js & WebApi/Asp.net\r\n\r\n We would love to have a solution that complements each others interpretation of the concepts around\r\n\r\n- Generic Extensions for Enum\r\n- Implement of Enum\r\n- Solution path to transition from Swagger Extension to first class member of Swagger 2.x schema\r\n\r\nWe currently use swagger to generate both client/server code for LoopBack & .NET, and client code in Java and PHP.  When it comes to **Enum** and **Additional Properties** we have to deal with exceptions because like HTML specs each community is interpreting the specifications a little differently rather than each community discussing the discrepancy to improve the understanding and interpreting of the Swagger Specs.\r\n\r\nHere is Swagger API discussion around ENUMs for C-Sharp\r\n\r\n- [C# - Lists of enums not properly generated #2714](https://github.com/swagger-api/swagger-codegen/issues/2714)\r\n\r\nHere is StrongLooop / Loopback discussion around Enums \r\n\r\n- [New type: ENUM #1321](https://github.com/strongloop/loopback/issues/1321#issuecomment-216868272)\r\n\r\nHere is how AutoRest community is currently dealing with Enums with AutoRest\r\n\r\n- [Azure's AutoRest Generic Extensions](https://github.com/Azure/autorest/blob/master/Documentation/swagger-extensions.md) \r\n- [AutoRest x-ms-enum](https://github.com/Azure/autorest/blob/master/Documentation/swagger-extensions.md#x-ms-enum)\r\n- [Enums with x-ms-enum definition](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/creating-swagger.md#Enum-x-ms-enum)\r\n- [AutoRest Enum Github Issue#393](https://github.com/Azure/autorest/pull/393/files)\r\n\r\nWe still need to investigate where the StrongLoops/ IBM thoughts on implementing Enum, and we plan to review shortly.\r\n\r\nWe just propose that all participants in providing a Swagger Code Generators to deal with Enum to converge on a solution rather than have a lot of silo implementations of swagger generic extensions for Enum.\r\n\r\nWe have investigated the following code generators to date.  Non have a consist implementation to deal with **Additional Properties** or **Enum**\r\n\r\n- [Azure AutoRest](https://github.com/Azure/autorest)\r\n- [NSwag ](http://nswag.org)\r\n- [Swagger-API Online Editor](http://editor.swagger.io)\r\n- [Swagger-API CodeGen](https://github.com/swagger-api/swagger-codegen )\r\n- [Loopback Swagger Generator](https://docs.strongloop.com/display/public/LB/Swagger+generator ) \r\n\r\nAppreciate feedback, concerns and issues with our thoughts…"}}