Table of Contents

Class SchemaValidator

Namespace
AgentContainers.Core.Validation
Assembly
AgentContainers.Core.dll
Validates raw YAML/JSON content against JSON Schema files. Provides schema-level validation before deserialization.
public sealed class SchemaValidator
Inheritance
SchemaValidator
Inherited Members

Properties

LoadedSchemas

Returns the names of all loaded schemas.
public IReadOnlyCollection<string> LoadedSchemas { get; }

Property Value

IReadOnlyCollection<string>

Methods

LoadSchemasAsync(string)

Loads all .schema.json files from the schemas directory.
public Task LoadSchemasAsync(string schemasDirectory)

Parameters

schemasDirectory string

Returns

Task

Validate(string, string)

Validates JSON content against a named schema. Returns empty list if schema not found (permissive in bootstrap).
public ICollection<ValidationError> Validate(string schemaName, string jsonContent)

Parameters

schemaName string
jsonContent string

Returns

ICollection<ValidationError>