@ -288,7 +288,7 @@ This new *table model* `Hero` will have the fields sent by the client, and will
Then we return the same *table model*`Hero` as is from the function. But as we declare the `response_model` with the `HeroPublic`*data model*, **FastAPI** will use `HeroPublic` to validate and serialize the data.
@ -304,13 +304,13 @@ By declaring it in `response_model` we are telling **FastAPI** to do its thing,
We can do the same as before to **read**`Hero`s, again, we use `response_model=list[HeroPublic]` to ensure that the data is validated and serialized correctly.