abelsilva / swaggerwcf

Swagger for WCF
Apache License 2.0
132 stars 95 forks source link

Models NameSpaces.Class but I want just CLass #195

Closed auriou closed 5 years ago

auriou commented 5 years ago

Is it possible, that the name of the models is just the name of their class and not the namespace + class Examples = Company.Entities.Business.Catalog.Sale but I want juste Sale

justin0522 commented 5 years ago

add attribute on the model class like this [SwaggerWcfDefinition(ModelName = "Sale")]

auriou commented 5 years ago

I can not add this attribute to my class because I am in a project POCO use by other projects and I do not want dependencies to third-party libraries

https://github.com/auriou/swaggerwcf

I fork your project to make changes on OperationsId and Models name and enums.

The enums were not fully compatible with the swagger standard, and I added the x-ms-enum attribute for generate enums by autorest

justin0522 commented 5 years ago

great ! please refer to https://github.com/microsoft/OpenAPI.NET/tree/master/src/Microsoft.OpenApi/Models for your new question