Home JsonSchemaBuilder Class
JsonSchemaBuilder Class
Cancel

JsonSchemaBuilder Class

Namespace: Json.Schema

Inheritance: JsonSchemaBuilder 🡒 object

A fluent-style builder for Json.Schema.JsonSchema.

Methods

Add(IJsonSchemaKeyword keyword)

Adds a new keyword.

Declaration

1
public void Add(IJsonSchemaKeyword keyword)
ParameterTypeDescription
keywordIJsonSchemaKeywordThe keyword to add.

Build()

Builds the schema.

Declaration

1
public JsonSchema Build()

Returns

A Json.Schema.JsonSchema.

Get()

Gets a keyword if one has been added.

Declaration

1
public T Get()

Returns

The keyword, if it exists; null otherwise.

RecursiveRefRoot()

Creates a new Json.Schema.JsonSchema.

Declaration

1
public static JsonSchema RecursiveRefRoot()

Returns

A JSON Schema that simply refers back to the recursive root schema.

RefRoot()

Creates a new Json.Schema.JsonSchema.

Declaration

1
public static JsonSchema RefRoot()

Returns

A JSON Schema that simply refers back to the root schema.

Contents