Home JsonSchemaBuilderExtensions Class
JsonSchemaBuilderExtensions Class
Cancel

JsonSchemaBuilderExtensions Class

Namespace: Json.Schema.Generation

Inheritance: JsonSchemaBuilderExtensions 🡒 object

Provides extension methods for schema generation.

Methods

FromType(this JsonSchemaBuilder builder, SchemaGeneratorConfiguration configuration)

Generates a schema from a CLR type.

Declaration

1
public static JsonSchemaBuilder FromType(this JsonSchemaBuilder builder, SchemaGeneratorConfiguration configuration)
ParameterTypeDescription
builderJsonSchemaBuilderThe schema builder.
configurationSchemaGeneratorConfigurationThe generator configuration.

Returns

The schema builder (for fluent syntax support).

FromType(this JsonSchemaBuilder builder, Type type, SchemaGeneratorConfiguration configuration)

Generates a schema from a CLR type.

Declaration

1
public static JsonSchemaBuilder FromType(this JsonSchemaBuilder builder, Type type, SchemaGeneratorConfiguration configuration)
ParameterTypeDescription
builderJsonSchemaBuilderThe schema builder.
typeTypeThe type to generate.
configurationSchemaGeneratorConfigurationThe generator configuration.

Returns

The schema builder (for fluent syntax support).

Contents