Skip to main content

IRtSchemaValidator

Namespace: Meshmakers.Octo.Runtime.Contracts.Serialization

Interface for schema validation of runtime models

public interface IRtSchemaValidator

Methods

ValidateModelInJson(Stream, String, OperationResult)

Validates the runtime model in the stream using JSON format.

bool ValidateModelInJson(Stream stream, string locationReference, OperationResult operationResult)

Parameters

stream Stream
Stream containing runtime model in JSON format.

locationReference String
A reference used in messages to signal the position of a file or resource

operationResult OperationResult
The result object that contains after call validation messages.

Returns

Boolean

ValidateModelInYaml(Stream, String, OperationResult)

Validates the runtime model in the stream using YAML format.

bool ValidateModelInYaml(Stream stream, string locationReference, OperationResult operationResult)

Parameters

stream Stream
Stream containing runtime model in YAML format.

locationReference String
A reference used in messages to signal the position of a file or resource

operationResult OperationResult
The result object that contains after call validation messages.

Returns

Boolean