From 8ec525224013dc5e35f14cbb0d3872b55053dbbc Mon Sep 17 00:00:00 2001 From: Jan Timpe Date: Wed, 25 Oct 2023 14:23:51 -0400 Subject: [PATCH] update docstring --- tdrs-backend/tdpservice/parsers/validators.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tdrs-backend/tdpservice/parsers/validators.py b/tdrs-backend/tdpservice/parsers/validators.py index a8722794d..8124a7bec 100644 --- a/tdrs-backend/tdpservice/parsers/validators.py +++ b/tdrs-backend/tdpservice/parsers/validators.py @@ -285,7 +285,12 @@ def validateRace(): # outlier validators def validate__FAM_AFF__SSN(): - """If item 30 ==2 and item 42 ==1 or 2, then item 33 != 000000000 -- 999999999.""" + """ + Validate social security number provided. + + If item FAMILY_AFFILIATION ==2 and item CITIZENSHIP_STATUS ==1 or 2, + then item SSN != 000000000 -- 999999999. + """ # value is instance def validate(instance): FAMILY_AFFILIATION = instance['FAMILY_AFFILIATION'] if type(instance) is dict else \