svenheden / csharp-models-to-typescript

C# models to TypeScript
89 stars 58 forks source link

Add ability to not include ignored properties #18

Closed AdnanDervisevic closed 5 years ago

AdnanDervisevic commented 5 years ago

If a JsonIgnore attribute exists on a model property or field we should not include it as it will never reach the client and will only cause confusion. NewtonSoft.Json is the by far most commonly used .NET serializer and JsonIgnore is a common attribute that can cause a lot of issues.

If this is considered too narrow an exclusion, however, perhaps the user can provide in their config file a list of excluded attributes?

svenheden commented 5 years ago

Nice!!

svenheden commented 5 years ago

Thanks @AdnanDervisevic