C# Class NSwag.SwaggerSchemaResolver

Appends a JSON Schema to the Definitions of a Swagger document.
Inheritance: JsonSchemaResolver
Afficher le fichier Open project: NSwag/NSwag Class Usage Examples

Méthodes publiques

Méthode Description
AppendSchema ( NJsonSchema.JsonSchema4 schema, string typeNameHint ) : void

Appends the schema to the root object.

SwaggerSchemaResolver ( SwaggerDocument document, NJsonSchema.JsonSchemaGeneratorSettings settings ) : System

Initializes a new instance of the SwaggerSchemaResolver class.

Method Details

AppendSchema() public méthode

Appends the schema to the root object.
public AppendSchema ( NJsonSchema.JsonSchema4 schema, string typeNameHint ) : void
schema NJsonSchema.JsonSchema4 The schema to append.
typeNameHint string The type name hint.
Résultat void

SwaggerSchemaResolver() public méthode

Initializes a new instance of the SwaggerSchemaResolver class.
is
public SwaggerSchemaResolver ( SwaggerDocument document, NJsonSchema.JsonSchemaGeneratorSettings settings ) : System
document SwaggerDocument The Swagger document.
settings NJsonSchema.JsonSchemaGeneratorSettings The settings.
Résultat System