Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeConfigurationValidation

OfficeIMO.Workflows.Configuration

Namespace
OfficeIMO.Workflows.Configuration
Assembly
OfficeIMO.Workflows
Source revision
12511d2fa560 with working tree changes
Modifiers
static

Loads an explicit local JSON Schema and validates configuration documents in source order.

Inheritance

  • object
  • OfficeConfigurationValidation

Methods

public static JsonSchema LoadSchema(string path) #

Loads a JSON Schema from a local file of at most 16 MiB. References within the schema are resolved automatically. References to other resources are reported by validation unless resolved by a caller-supplied schema.

Parameters

path string required

Returns

JsonSchema
Validate 2 overloads
public static IReadOnlyList<JsonSchemaValidationResult> Validate(YamlDocument document, JsonSchema schema, CancellationToken cancellationToken = default) #

Validates each YAML document in the stream. Results are ordered by document position.

Parameters

document OfficeIMO.Yaml.YamlDocument required
schema OfficeIMO.Json.JsonSchema required
cancellationToken System.Threading.CancellationToken = default optional

Returns

IReadOnlyList<JsonSchemaValidationResult>
public static IReadOnlyList<JsonSchemaValidationResult> Validate(TomlDocument document, JsonSchema schema, CancellationToken cancellationToken = default) #

Validates a TOML document and returns its single result.

Parameters

document OfficeIMO.Toml.TomlDocument required
schema OfficeIMO.Json.JsonSchema required
cancellationToken System.Threading.CancellationToken = default optional

Returns

IReadOnlyList<JsonSchemaValidationResult>