Class: Axn::Internal::Reflection::Schema::NodeAnnotation
- Inherits:
-
Data
- Object
- Data
- Axn::Internal::Reflection::Schema::NodeAnnotation
- Defined in:
- lib/axn/internal/reflection/schema.rb
Overview
Per-node result of the single bottom-up derivation pass (derive_annotations): required means
the node must appear in its PARENT's required array (mirrors node_optional?'s own-level rule,
using the node's FULL config set — the same default children_require_presence? always used);
nullable means null is admissible on the node's OWN emitted property, decided from the
node's non-model representative config (the same one apply_nested_subfields!'s callers already
select) and its children (mirrors required_child?, hazard disjunct included). Only meaningful
for a node that HAS children to nest (a leaf's own nullability is decided by build_property,
never read from here).
Instance Attribute Summary collapse
-
#nullable ⇒ Object
readonly
Returns the value of attribute nullable.
-
#required ⇒ Object
readonly
Returns the value of attribute required.
Instance Attribute Details
#nullable ⇒ Object (readonly)
Returns the value of attribute nullable
73 74 75 |
# File 'lib/axn/internal/reflection/schema.rb', line 73 def nullable @nullable end |
#required ⇒ Object (readonly)
Returns the value of attribute required
73 74 75 |
# File 'lib/axn/internal/reflection/schema.rb', line 73 def required @required end |