C# Class NSwag.SwaggerSchemaResolver

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

Public Methods

Method 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 method

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.
return void

SwaggerSchemaResolver() public method

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.
return System