Class: Axn::Internal::Reflection::Schema::NodeAnnotation

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#nullableObject (readonly)

Returns the value of attribute nullable

Returns:

  • (Object)

    the current value of nullable



73
74
75
# File 'lib/axn/internal/reflection/schema.rb', line 73

def nullable
  @nullable
end

#requiredObject (readonly)

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



73
74
75
# File 'lib/axn/internal/reflection/schema.rb', line 73

def required
  @required
end