C# Class Swagger.Net.Serialization.SwaggerContractResolver

A contract resolver to deal with Swagger spec.
Inheritance: Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver
显示文件 Open project: giacomelli/DG-Swagger.Net

Public Methods

Method Description
SwaggerContractResolver ( ResourceListing resourceListing ) : System

Initializes a new SwaggerContractResolver class instance. The API resource listing.

ToCamelCase ( string source ) : string

Transform the string to camel case.

Protected Methods

Method Description
ResolvePropertyName ( string propertyName ) : string

Resolves the name of the property.

Method Details

ResolvePropertyName() protected method

Resolves the name of the property.
protected ResolvePropertyName ( string propertyName ) : string
propertyName string Name of the property.
return string

SwaggerContractResolver() public method

Initializes a new SwaggerContractResolver class instance. The API resource listing.
public SwaggerContractResolver ( ResourceListing resourceListing ) : System
resourceListing ResourceListing
return System

ToCamelCase() public static method

Transform the string to camel case.
public static ToCamelCase ( string source ) : string
source string The source.
return string