We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 192af1c commit 83fa4f2Copy full SHA for 83fa4f2
Dockerfile
@@ -26,4 +26,4 @@ ENV NAME=World
26
# Run app.py when the container launches
27
CMD ["fastapi", "run", "app.py"]
28
29
-#harbor.freshbrewed.science/library/pybsposter:0.1.0
+#harbor.freshbrewed.science/library/pybsposter:0.1.1
app.py
@@ -14,6 +14,11 @@ class SocialPost(BaseModel):
14
text: str
15
link: str | None = None
16
17
+ class Config:
18
+ allow_population_by_field_name = True
19
+ alias_generator = lambda s: s.upper()
20
+ populate_by_name = True
21
+
22
@app.get("/", response_class=HTMLResponse)
23
def read_root():
24
try:
0 commit comments