Post APTnfMhMbJnVX5YVbk by Sanguish@mastodon.social
 (DIR) More posts by Sanguish@mastodon.social
 (DIR) Post #APTnfMhMbJnVX5YVbk by Sanguish@mastodon.social
       2022-11-11T01:09:24Z
       
       0 likes, 0 repeats
       
       Swift question..  I’m parsing Yaml using Yams.I can read it into an array of dictionary and arrays no problem.Can I somehow represent this as Decodable directly? I think the key names preclude that.An example of the yaml and my wanted date structure below.
       
 (DIR) Post #APTnfN2dKEoMb3VUlE by shadowfacts@social.shadowfacts.net
       2022-11-11T02:08:25.611251Z
       
       0 likes, 0 repeats
       
       @Sanguish I think so. You'd need a custom CodingKey impl that can be any string, and you'd need to implement init(from:) yourself. Possibly with an intermediate struct you can decode the individual entries to w/o the keyName field
       
 (DIR) Post #APU4TuEvldp3IzNVIG by Sanguish@mastodon.social
       2022-11-11T05:11:56Z
       
       1 likes, 0 repeats
       
       @shadowfacts I’m thinking it might be easier to just change the yaml, since I control it. Lol