JSON Customisation

Is there an attribute to rename a class for the JSON/Swagger like [JsonProperty('useThis')] does for fields? Sort of

TMyClass = class

What useThis name will be used for, exactly? If I remember correctly, class names are not used anywhere in JSON serialization.

That is true, they aren't. I perhaps should have headed it as Swagger Customisation.

In this case we are having to match a client's swagger style so they don't use TMyClass they just use MyClass. While we can (and at the moment do) define the class without the leading 'T' we'd rather keep it but publish the Swagger without it.

I believe you are talking about this then, and we can close this topic?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.