[
    {
        "name": "Rails",
        "comment": "\n\n# Http\n@docs send",
        "unions": [],
        "aliases": [],
        "values": [
            {
                "name": "send",
                "comment": "Utility for working with rails. Wraps Http.send passing an Authenticity Token\nalong with the type of request and a way to decode results.",
                "type": "String -> Decoder value -> String -> String -> Body -> Task Error value"
            }
        ],
        "binops": []
    },
    {
        "name": "Rails.Decode",
        "comment": "\n\n# Decoding\n@docs errors",
        "unions": [],
        "aliases": [],
        "values": [
            {
                "name": "errors",
                "comment": "Function for creating a Decoder that decodes errors formatted by rails. It is\nexpecting JSON formatted as:\n\n`{ errors: {errorName: [\"Error String\"] } }`.\n\nTo create the decoder, pass a dict mapping your Strings to Fields that mimic\nthe expected nesting, eg.\n\n```\nmappings =\n    Dict.fromList\n        [ ( \"school\", School )\n        , ( \"school.name\", SchoolName )\n        , ( \"school.address\", SchoolAddress )\n        , ( \"school.city\", City )\n        , ( \"school.state\", State )\n        , ( \"school.zip\", Zip )\n        , ( \"school.country\", Country )\n        ]\n\nrailsErrorsDecoder =\n    Rails.Decode.errors mappings\n```",
                "type": "Dict String field -> Decoder (List ( field, String ))"
            }
        ],
        "binops": []
    }
]