title: extracting strings after traversing errors in Ecto Elixir
body: <p>As in Ecto, we have changeset and in the case of invalid changeset, we can traverse errors according to <a href="https://hexdocs.pm/ecto/Ecto.Changeset.html#traverse_errors/2" rel="nofollow">Traverse error</a>. But this gave us a very complicated JSON such as </p>
  
  <pre><code>  {
      "to_date": [
        "can't be blank"
      ],
      "title": [
        "can't be blank"
      ],
      "requested_by": [
        "can't be blank"
      ],
      "from_date": [
        "can't be blank"
      ],
      "exid": [
        "can't be blank"
      ]
    }
  </code></pre>
  
  <p>can't we do something wth that in Elixir so we can get the straight strings such as "Exid can't be blank" or such as an object </p>
  
  <pre><code>{
    to_date: "to_date can't be bank"
  }
  </code></pre>
  
  <p>Update:
  This is the result after traversing errors</p>
  
  <pre><code>%{exid: ["can't be blank"], from_date: ["can't be blank"],
    requested_by: ["can't be blank"], title: ["can't be blank"],
    to_date: ["can't be blank"]}
  </code></pre>
  
  <p>is there any way to get "exid cant be blank" by using <code>Enum</code>?</p>