Skip to content

Conversation

@ssgutierrez42
Copy link

Summary

Enables access of a Node's tag:
e.g. !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
      ...

Background

See #265

Enables an avenue to decode polymorphic types.

@ssgutierrez42 ssgutierrez42 marked this pull request as ready for review April 11, 2022 18:29
@lynchsft
Copy link
Collaborator

Closing this as obviated by #428. Please reopen if the requirement has not been addressed. :)

@lynchsft lynchsft closed this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants