Problem: FastAPI doesn't accept JSON-encoded pydantic models in query strings. See #884.
Solution: Use json_param()
from the snippet below.
Usage example.
from fastapi import FastAPI
from pydantic import BaseModel
Problem: FastAPI doesn't accept JSON-encoded pydantic models in query strings. See #884.
Solution: Use json_param()
from the snippet below.
Usage example.
from fastapi import FastAPI
from pydantic import BaseModel
<?php | |
namespace Acme\DemoBundle\HttpFoundation; | |
use Symfony\Component\HttpFoundation\Response; | |
/** | |
* Response for download excel file | |
*/ | |
class ExcelFileResponse extends Response |