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
Methods
LoadSchemasAsync(string)
Loads all .schema.json files from the schemas directory.
public Task LoadSchemasAsync(string schemasDirectory)
Parameters
schemasDirectorystring
Returns
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
Returns
- ICollection<ValidationError>