Skip to content

JsonSchemaGenerator

public sealed class JsonSchemaGenerator

Namespace: RhoMicro.BindSight.Generators

Inheritance:

Generates json schemata for option models.

JsonSchemaGenerator(IJsonSchemaGeneratorOptions, ILogger<JsonSchemaGenerator>)
Section titled “JsonSchemaGenerator(IJsonSchemaGeneratorOptions, ILogger<JsonSchemaGenerator>)”
public JsonSchemaGenerator(IJsonSchemaGeneratorOptions jsonSchemaOptions, ILogger<JsonSchemaGenerator> logger)

Generates json schemata for option models.

NameTypeDescription
jsonSchemaOptionsIJsonSchemaGeneratorOptionsThe options to use.
loggerILogger<JsonSchemaGenerator>The logger to use.
Run(IBindSightGeneratorOptions, CancellationToken)
Section titled “Run(IBindSightGeneratorOptions, CancellationToken)”
public ValueTask Run(IBindSightGeneratorOptions optionsDocsGeneratorOptions, [CancellationToken cancellationToken = default(CancellationToken)])

Runs the generator.

NameTypeDescription
cancellationTokenCancellationTokenThe cancellation token used to request generating to be cancelled.
optionsDocsGeneratorOptionsIBindSightGeneratorOptionsThe options to use.

A task representing the generating of documentation.