Open ssgutierrez42 opened 2 years ago
Enables access of a Node's tag: e.g. !DanceEvent
!DanceEvent
structure: version: 0.1.0 actions: 8a139ac7: !DanceEvent type: happy
During the decoding function of Codable objects:
required init(from decoder: Decoder) throws { ... print("\(decoder.tag)") //!DanceEvent ...
See https://github.com/jpsim/Yams/issues/265
Enables an avenue to decode polymorphic types.
Summary
Enables access of a Node's tag: e.g.
!DanceEvent
During the decoding function of Codable objects:
Background
See https://github.com/jpsim/Yams/issues/265
Enables an avenue to decode polymorphic types.