C# 클래스 Nancy.Swagger.SwaggerTypeMapping

This class allows you to customize how you want a type to be represented in the swagger output. For example, if a service serializes/deserializes DateTime as a string when being sent/received, there should be a SwaggerTypeMapping from DateTime to string in order to make the swagger output match what is actually expected.
파일 보기 프로젝트 열기: khellang/Nancy.Swagger 1 사용 예제들

공개 메소드들

메소드 설명
AddTypeMapping ( Type source, Type target ) : void
GetMappedType ( Type type, List previousTypes = null ) : Type
IsMappedType ( Type type ) : bool

비공개 메소드들

메소드 설명
SwaggerTypeMapping ( Type sourceType, Type targetType ) : System

메소드 상세

AddTypeMapping() 공개 정적인 메소드

public static AddTypeMapping ( Type source, Type target ) : void
source System.Type
target System.Type
리턴 void

GetMappedType() 공개 정적인 메소드

public static GetMappedType ( Type type, List previousTypes = null ) : Type
type System.Type
previousTypes List
리턴 System.Type

IsMappedType() 공개 정적인 메소드

public static IsMappedType ( Type type ) : bool
type System.Type
리턴 bool