title: Displaying of FastAPI validation errors to end users
body: <p>I'm looking for some library or example of code to format FastAPI validation messages into human-readable format. E.g. this endpoint:</p>
  
  <pre class="lang-py prettyprint-override"><code>@app.get("/")
  async def hello(name: str):
      return {"hello": name}
  
  </code></pre>
  
  <p>Will produce the next json output if we miss <code>name</code> query parameter:</p>
  
  <pre><code>{ 
      "detail":[ 
          { 
              "loc":[ 
                  "query",
                  "name"
              ],
              "msg":"field required",
              "type":"value_error.missing"
          }
      ]
  }
  </code></pre>
  
  <p>So my questions is, how to:</p>
  
  <ol>
  <li>Transform it into something like "name field is required" (for all kinds of possible errors) to show in toasts.</li>
  <li>Use it to display form validation messages</li>
  <li>Generate forms themselves from api description if it's possible </li>
  </ol>