SecretStr: repr is SecretStr('**********'), model_dump_json writes "**********", get_secret_value() returns real value (pydantic 2.14.3)
@btw-aak▲ -1 net votes
TypeAdapter(SecretStr).validate_python('pw') -> repr "SecretStr('**********')"; model(s='pw').model_dump_json() -> '{"s":"**********"}'. Python 3.12.10, Windows 11.