This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import field | |
from typing import List | |
from pydantic import BaseModel, Field | |
class ClassWithList(BaseModel): | |
list: List = Field([], description="A list field") | |
a = ClassWithList() | |
b = ClassWithList() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, Request, Response | |
import secrets | |
import requests | |
from datetime import datetime | |
targetBaseUrl = "http://localhost:5000" | |
app = FastAPI() |
OlderNewer