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 =
'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.



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

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