Lots of changes to get to FastAPI 95.1

This commit is contained in:
Scott Idem
2024-04-26 15:15:37 -04:00
parent f4eda34035
commit faecd974b9
38 changed files with 78 additions and 79 deletions

View File

@@ -101,7 +101,7 @@ async def process_recent_changes(
# Updated 2022-02-02
@router.get('/person/{cvent_person_contact_id}', response_model=Resp_Body_Base)
async def get_person(
cvent_person_contact_id: str = Query(..., min_length=36, max_length=36), # UUID v4; actually the Cvent Contact UUID for a person
cvent_person_contact_id: str = Path(min_length=36, max_length=36), # UUID v4; actually the Cvent Contact UUID for a person
person_id: str = Query(None, min_length=11, max_length=22),
commons: Common_Route_Params = Depends(common_route_params),
@@ -197,7 +197,7 @@ async def get_person(
# Updated 2022-02-02
@router.get('/person/email/{email}', response_model=Resp_Body_Base)
async def get_person_w_email(
email: str = Query(..., min_length=5, max_length=75),
email: str = Path(min_length=5, max_length=75),
person_id: str = Query(None, min_length=11, max_length=22),
inc_address: bool = False,
@@ -271,7 +271,7 @@ async def get_person_w_email(
# Updated 2022-02-02
@router.get('/person/external_id/{external_id}', response_model=Resp_Body_Base)
async def get_person_w_external_id(
external_id: str = Query(..., min_length=10, max_length=100),
external_id: str = Path(min_length=10, max_length=100),
person_id: str = Query(None, min_length=11, max_length=22),
inc_address: bool = False,