Home JsonSchemaBuilderExtensions Class
JsonSchemaBuilderExtensions Class
Cancel

JsonSchemaBuilderExtensions Class

Namespace: Json.Schema.Data

Inheritance: JsonSchemaBuilderExtensions 🡒 object

Provides a fluent interface for Json.Schema.JsonSchemaBuilder.

Methods

Data(this JsonSchemaBuilder builder, IReadOnlyDictionary<string, string> data)

Adds a data keyword.

Declaration

1
public static JsonSchemaBuilder Data(this JsonSchemaBuilder builder, IReadOnlyDictionary<string, string> data)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
dataIReadOnlyDictionary<string, string>The collection of keywords and references.

Returns

The builder.

Data(this JsonSchemaBuilder builder, params (string name, string reference)[] data)

Adds a data keyword.

Declaration

1
public static JsonSchemaBuilder Data(this JsonSchemaBuilder builder, params (string name, string reference)[] data)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
dataparams (string name, string reference)[]The collection of keywords and references.

Returns

The builder.

OptionalData(this JsonSchemaBuilder builder, IReadOnlyDictionary<string, string> data)

Adds a data keyword.

Declaration

1
public static JsonSchemaBuilder OptionalData(this JsonSchemaBuilder builder, IReadOnlyDictionary<string, string> data)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
dataIReadOnlyDictionary<string, string>The collection of keywords and references.

Returns

The builder.

OptionalData(this JsonSchemaBuilder builder, params (string name, string reference)[] data)

Adds a data keyword.

Declaration

1
public static JsonSchemaBuilder OptionalData(this JsonSchemaBuilder builder, params (string name, string reference)[] data)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
dataparams (string name, string reference)[]The collection of keywords and references.

Returns

The builder.

Contents