Exception: A2A::Schema::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- A2A::Schema::ValidationError
- Defined in:
- lib/a2a/schema/validation_error.rb
Overview
Raised when a Definition instance fails schema validation.
Collects JSONSchemer error details and formats them as a human-readable list with dot-notation field paths.
Agent Card validation failed:
- name is required but missing
- capabilities.streaming must be boolean, got string
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#definition_name ⇒ Object
readonly
Returns the value of attribute definition_name.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors, definition_name:, data: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(errors, definition_name:, data: nil) ⇒ ValidationError
Returns a new instance of ValidationError.
20 21 22 23 24 25 26 |
# File 'lib/a2a/schema/validation_error.rb', line 20 def initialize(errors, definition_name:, data: nil) @errors = errors @definition_name = definition_name @data = data super() end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
18 19 20 |
# File 'lib/a2a/schema/validation_error.rb', line 18 def data @data end |
#definition_name ⇒ Object (readonly)
Returns the value of attribute definition_name.
18 19 20 |
# File 'lib/a2a/schema/validation_error.rb', line 18 def definition_name @definition_name end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
18 19 20 |
# File 'lib/a2a/schema/validation_error.rb', line 18 def errors @errors end |