Class: RosettAi::Validators::BehaviourValidator

Inherits:
SchemaValidator show all
Defined in:
lib/rosett_ai/validators/behaviour_validator.rb

Overview

Validates behaviour configuration files against the behaviour JSON Schema.

Thin wrapper around SchemaValidator. The SCHEMA_PATH constant is preserved for backward compatibility with existing specs and code that references it.

Constant Summary collapse

SCHEMA_PATH =

Returns Path to the JSON Schema file used for validation.

Returns:

  • (String)

    Path to the JSON Schema file used for validation.

'conf/schemas/behaviour_schema.json'

Instance Attribute Summary

Attributes inherited from SchemaValidator

#errors

Instance Method Summary collapse

Methods inherited from SchemaValidator

#valid?, #validate

Constructor Details

#initializeBehaviourValidator

Returns a new instance of BehaviourValidator.



16
17
18
# File 'lib/rosett_ai/validators/behaviour_validator.rb', line 16

def initialize
  super(schema: 'behaviour_schema.json')
end