C# Class NSwag.CodeGeneration.CodeGenerators.CSharp.SwaggerToCSharpTypeResolver

A resolver which returns Exception without generating the class (uses System.Exception instead of own class).
Inheritance: CSharpTypeResolver
Afficher le fichier Open project: NSwag/NSwag Class Usage Examples

Méthodes publiques

Méthode Description
CreateWithDefinitions ( NJsonSchema.CodeGeneration.CSharp.CSharpGeneratorSettings settings, JsonSchema4>.IDictionary definitions ) : SwaggerToCSharpTypeResolver

Creates a new resolver, adds the given schema definitions and registers an exception schema if available.

Resolve ( NJsonSchema.JsonSchema4 schema, bool isNullable, string typeNameHint ) : string

Resolves and possibly generates the specified schema.

SwaggerToCSharpTypeResolver ( NJsonSchema.CodeGeneration.CSharp.CSharpGeneratorSettings settings, NJsonSchema.JsonSchema4 exceptionSchema ) : System.Collections.Generic

Initializes a new instance of the CSharpTypeResolver class.

Method Details

CreateWithDefinitions() public static méthode

Creates a new resolver, adds the given schema definitions and registers an exception schema if available.
public static CreateWithDefinitions ( NJsonSchema.CodeGeneration.CSharp.CSharpGeneratorSettings settings, JsonSchema4>.IDictionary definitions ) : SwaggerToCSharpTypeResolver
settings NJsonSchema.CodeGeneration.CSharp.CSharpGeneratorSettings The settings.
definitions JsonSchema4>.IDictionary The definitions.
Résultat SwaggerToCSharpTypeResolver

Resolve() public méthode

Resolves and possibly generates the specified schema.
public Resolve ( NJsonSchema.JsonSchema4 schema, bool isNullable, string typeNameHint ) : string
schema NJsonSchema.JsonSchema4 The schema.
isNullable bool Specifies whether the given type usage is nullable.
typeNameHint string The type name hint to use when generating the type and the type name is missing.
Résultat string

SwaggerToCSharpTypeResolver() public méthode

Initializes a new instance of the CSharpTypeResolver class.
public SwaggerToCSharpTypeResolver ( NJsonSchema.CodeGeneration.CSharp.CSharpGeneratorSettings settings, NJsonSchema.JsonSchema4 exceptionSchema ) : System.Collections.Generic
settings NJsonSchema.CodeGeneration.CSharp.CSharpGeneratorSettings The generator settings.
exceptionSchema NJsonSchema.JsonSchema4 The exception type schema.
Résultat System.Collections.Generic