Fixed carpool OpenAPI examples
Some checks reported errors
Amarillo/amarillo-gitea/amarillo-core/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Csaba 2024-01-18 12:20:07 +01:00
parent 4d909ee62c
commit ebbbf28432
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ router = APIRouter(
"description": "Agency does not exist"}, "description": "Agency does not exist"},
}) })
async def post_carpool(carpool: Carpool = Body(..., examples=examples), async def post_carpool(carpool: Carpool = Body(..., openapi_examples=examples),
requesting_agency_id: str = Depends(verify_api_key)) -> Carpool: requesting_agency_id: str = Depends(verify_api_key)) -> Carpool:
await verify_permission_for_same_agency_or_admin(carpool.agency, requesting_agency_id) await verify_permission_for_same_agency_or_admin(carpool.agency, requesting_agency_id)

View file

@ -1,6 +1,6 @@
[project] [project]
name = "amarillo-core" name = "amarillo-core"
version = "0.0.13" version = "0.0.14"
dependencies = [ dependencies = [
"fastapi[all]==0.104.0", "fastapi[all]==0.104.0",
"geopandas==0.14", "geopandas==0.14",