RicoSuter / NJsonSchema

JSON Schema reader, generator and validator for .NET
http://NJsonSchema.org
MIT License
1.4k stars 535 forks source link

DisplayNameAttribute Support for schema title #571

Open kaunglvlv opened 6 years ago

kaunglvlv commented 6 years ago

First off, awesome library! Can we add support for System.ComponentModel.DisplayNameAttribute that JSON.NET has? This enables the title on the object to be named differently like what System.ComponentModel.DataAnnotations.DisplayAttribute does for properties.

frankely commented 5 years ago

any updates on this?

kaunglvlv commented 5 years ago

If you follow the PR, he talked about this having a conflict with a DTO. He also suggested creating your own DefaultSchemaNameGenerator via settings. This is what we ended up doing.