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

@@ -115,7 +115,7 @@ async def post_organization_json(
@router.patch('/{organization_id}/json', response_model=Resp_Body_Base)
async def patch_organization_json(
organization_obj: Organization_Base,
organization_id: str = Query(..., min_length=1, max_length=22),
organization_id: str = Path(min_length=11, max_length=22),
process_contact: bool = False,
x_account_id: Optional[str] = Header(..., ),
return_obj: Optional[bool] = True,
@@ -174,7 +174,7 @@ async def get_organization_obj_li(
@router.get('/{organization_id}', response_model=Resp_Body_Base)
async def get_organization_obj(
organization_id: str = Query(..., min_length=1, max_length=22),
organization_id: str = Path(min_length=11, max_length=22),
inc_address: bool = False,
inc_contact: bool = False,
x_account_id: str = Header(...),