Class: MCPClient::SchemaValidator::Evaluation::Application
- Inherits:
-
Struct
- Object
- Struct
- MCPClient::SchemaValidator::Evaluation::Application
- Defined in:
- lib/mcp_client/schema_validator/evaluation.rb
Overview
One (sub)schema being applied to one value: the instance and the context are fixed for a whole trampoline (the same value throughout), the rest is what this application accumulates.
Instance Attribute Summary collapse
-
#collecting ⇒ Boolean
Whether an unevaluated keyword at this node or at one applying it to the same value reads the annotations, so every branch that passes must be evaluated rather than the first one.
-
#counted_before ⇒ Integer
Ctx.errors when the application began, so only this node's own errors are charged to MAX_ERRORS.
-
#ctx ⇒ Object
Returns the value of attribute ctx.
-
#data ⇒ Object
Returns the value of attribute data.
-
#dialect ⇒ Object
Returns the value of attribute dialect.
-
#errors ⇒ Array<String>
This node's own errors so far.
-
#evaluated ⇒ Evaluated?
What was evaluated of an object or array.
-
#path ⇒ Object
Returns the value of attribute path.
-
#ref_depth ⇒ Object
Returns the value of attribute ref_depth.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Attribute Details
#collecting ⇒ Boolean
Returns whether an unevaluated keyword at this node or at one applying it to the same value reads the annotations, so every branch that passes must be evaluated rather than the first one.
49 50 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 Application = Struct.new(:data, :path, :ctx, :schema, :dialect, :ref_depth, :errors, :counted_before, :evaluated, :collecting, keyword_init: true) |
#counted_before ⇒ Integer
Returns ctx.errors when the application began, so only this node's own errors are charged to MAX_ERRORS.
49 50 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 Application = Struct.new(:data, :path, :ctx, :schema, :dialect, :ref_depth, :errors, :counted_before, :evaluated, :collecting, keyword_init: true) |
#ctx ⇒ Object
Returns the value of attribute ctx
49 50 51 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 def ctx @ctx end |
#data ⇒ Object
Returns the value of attribute data
49 50 51 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 def data @data end |
#dialect ⇒ Object
Returns the value of attribute dialect
49 50 51 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 def dialect @dialect end |
#errors ⇒ Array<String>
Returns this node's own errors so far.
49 50 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 Application = Struct.new(:data, :path, :ctx, :schema, :dialect, :ref_depth, :errors, :counted_before, :evaluated, :collecting, keyword_init: true) |
#evaluated ⇒ Evaluated?
Returns what was evaluated of an object or array.
49 50 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 Application = Struct.new(:data, :path, :ctx, :schema, :dialect, :ref_depth, :errors, :counted_before, :evaluated, :collecting, keyword_init: true) |
#path ⇒ Object
Returns the value of attribute path
49 50 51 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 def path @path end |
#ref_depth ⇒ Object
Returns the value of attribute ref_depth
49 50 51 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 def ref_depth @ref_depth end |
#schema ⇒ Object
Returns the value of attribute schema
49 50 51 |
# File 'lib/mcp_client/schema_validator/evaluation.rb', line 49 def schema @schema end |