thoughtbot/Argo

Document the use of the `alternate` operator

Open

#285 ouverte le 4 nov. 2015

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)Swift (214 forks)batch import
documentationhelp wanted

Métriques du dépôt

Stars
 (3 455 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Related: #284

Our use of Alternative is something that sticks out to me as being insanely powerful, but we don't talk about it ever. We should add some documentation around this. Ideas:

  • Decoding multiple JSON formats
  • Decoding into enums rather than structs
  • Decoding from different JSON types (int/string as in #284)

Guide contributeur