Home JsonSchemaBuilderExtensions Class
JsonSchemaBuilderExtensions Class
Cancel

JsonSchemaBuilderExtensions Class

Namespace: Json.Schema.ArrayExt

Inheritance: JsonSchemaBuilderExtensions 🡒 object

Provides a fluent interface for Json.Schema.JsonSchemaBuilder.

Methods

Ordering(this JsonSchemaBuilder builder, params OrderingSpecifier[] specifiers)

Adds an ordering keyword.

Declaration

1
public static JsonSchemaBuilder Ordering(this JsonSchemaBuilder builder, params OrderingSpecifier[] specifiers)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
specifiersparams OrderingSpecifier[]The collection of ordering specifiers.

Returns

The builder.

UniqueKeys(this JsonSchemaBuilder builder, IEnumerable<JsonPointer> keys)

Adds a uniqueKeys keyword.

Declaration

1
public static JsonSchemaBuilder UniqueKeys(this JsonSchemaBuilder builder, IEnumerable<JsonPointer> keys)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
keysIEnumerable<JsonPointer>The collection of pointers to the keys which should be unique within the array.

Returns

The builder.

UniqueKeys(this JsonSchemaBuilder builder, IEnumerable<string> keys)

Adds a uniqueKeys keyword.

Declaration

1
public static JsonSchemaBuilder UniqueKeys(this JsonSchemaBuilder builder, IEnumerable<string> keys)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
keysIEnumerable<string>The collection of pointers to the keys which should be unique within the array.

Returns

The builder.

UniqueKeys(this JsonSchemaBuilder builder, params JsonPointer[] keys)

Adds a uniqueKeys keyword.

Declaration

1
public static JsonSchemaBuilder UniqueKeys(this JsonSchemaBuilder builder, params JsonPointer[] keys)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
keysparams JsonPointer[]The collection of pointers to the keys which should be unique within the array.

Returns

The builder.

UniqueKeys(this JsonSchemaBuilder builder, params string[] keys)

Adds a uniqueKeys keyword.

Declaration

1
public static JsonSchemaBuilder UniqueKeys(this JsonSchemaBuilder builder, params string[] keys)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
keysparams string[]The collection of pointers to the keys which should be unique within the array.

Returns

The builder.

Contents