@ -163,7 +163,11 @@ def test_openapi_schema(client: TestClient):
}
}
) ,
) ,
" username " : { " title " : " Username " , " type " : " string " } ,
" username " : { " title " : " Username " , " type " : " string " } ,
" password " : { " title " : " Password " , " type " : " string " } ,
" password " : {
" title " : " Password " ,
" type " : " string " ,
" format " : " password " ,
} ,
" scope " : { " title " : " Scope " , " type " : " string " , " default " : " " } ,
" scope " : { " title " : " Scope " , " type " : " string " , " default " : " " } ,
" client_id " : IsDict (
" client_id " : IsDict (
{
{
@ -179,11 +183,16 @@ def test_openapi_schema(client: TestClient):
{
{
" title " : " Client Secret " ,
" title " : " Client Secret " ,
" anyOf " : [ { " type " : " string " } , { " type " : " null " } ] ,
" anyOf " : [ { " type " : " string " } , { " type " : " null " } ] ,
" format " : " password " ,
}
}
)
)
| IsDict (
| IsDict (
# TODO: remove when deprecating Pydantic v1
# TODO: remove when deprecating Pydantic v1
{ " title " : " Client Secret " , " type " : " string " }
{
" title " : " Client Secret " ,
" type " : " string " ,
" format " : " password " ,
}
) ,
) ,
} ,
} ,
} ,
} ,