GithubHelp home page GithubHelp logo

nunoalexandre / stork Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 103 KB

Delivering types from JSON like a Stork

License: BSD 3-Clause "New" or "Revised" License

Objective-C 2.52% Swift 94.00% Ruby 3.48%
swift json-parser functional-programming json protocol swift5

stork's Issues

Consider adding a 'DecodeResult' value instead of using optionals

Now we are blind in optionals. That means that we don't know why a computation failed.
There are two critical drawbacks now, where whenever 1) an expected required field is missing or its expected type is wrong, no information is passed on to provide a clear suggestion of what is wrong and must be fixed.

Add more examples

  • Show how to get a list of Ts from a given [JSON]
  • Show how to handle backwards-compatibility
  • Show how to build a type from different JsonValues.

Write a complete and friendly README

The structure of the page should be something like this:

  • 1. Name + Logo(todo)
    • 1.1 Description
  • 2. Table of contents
  • 3. How it works (It'd be nice to have an illustration explaining the dots and the flow)
  • 4. Examples
  • 5. Installation (#6)
    • cocoa
    • carthage
    • swift package manager

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.