Home JsonSchemaExtensions Class
JsonSchemaExtensions Class
Cancel

JsonSchemaExtensions Class

Namespace: Json.Schema.DataGeneration

Inheritance: JsonSchemaExtensions 🡒 object

Provides extension methods for Json.Schema.JsonSchema to generate sample data.

Methods

GenerateData(this JsonSchema schema, EvaluationOptions options)

Attempts to generate sample data that meets the requirements of the schema.

Declaration

1
public static GenerationResult GenerateData(this JsonSchema schema, EvaluationOptions options)
ParameterTypeDescription
schemaJsonSchemaThe schema.
optionsEvaluationOptionsA set of evaluation options.

Returns

A result object indicating success and containing the result or error message.

Contents