From b2eb49044b4a46b851fb6af6a2b34ec7b902850c Mon Sep 17 00:00:00 2001 From: Eric Lipe Date: Thu, 26 Oct 2023 13:10:47 -0600 Subject: [PATCH] - Pre-emptively marking required false to prepare for merge --- .../tdpservice/parsers/schema_defs/ssp/m4.py | 2 +- .../tdpservice/parsers/schema_defs/ssp/m5.py | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m4.py b/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m4.py index 2de07e809..901ca6d4f 100644 --- a/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m4.py +++ b/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m4.py @@ -26,7 +26,7 @@ Field(item="2", name='COUNTY_FIPS_CODE', type='string', startIndex=19, endIndex=22, required=True, validators=[validators.isInStringRange(0, 999)]), Field(item="4", name='STRATUM', type='string', startIndex=22, endIndex=24, - required=True, validators=[validators.isInStringRange(0, 99)]), + required=False, validators=[validators.isInStringRange(0, 99)]), Field(item="6", name='ZIP_CODE', type='string', startIndex=24, endIndex=29, required=True, validators=[validators.isInStringRange(0, 99999)]), Field(item="7", name='DISPOSITION', type='number', startIndex=29, endIndex=30, diff --git a/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py b/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py index d4741d8c0..837c2cb1d 100644 --- a/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py +++ b/tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py @@ -88,46 +88,46 @@ TransformField(transform_func=ssp_ssn_decryption_func, item="15", name='SSN', type='string', startIndex=28, endIndex=37, required=True, validators=[validators.validateSSN()], is_encrypted=False), - Field(item="16A", name='RACE_HISPANIC', type='number', startIndex=37, endIndex=38, required=True, + Field(item="16A", name='RACE_HISPANIC', type='number', startIndex=37, endIndex=38, required=False, validators=[validators.validateRace()]), Field(item="16B", name='RACE_AMER_INDIAN', type='number', startIndex=38, endIndex=39, - required=True, validators=[validators.validateRace()]), + required=False, validators=[validators.validateRace()]), Field(item="16C", name='RACE_ASIAN', type='number', startIndex=39, endIndex=40, - required=True, validators=[validators.validateRace()]), + required=False, validators=[validators.validateRace()]), Field(item="16D", name='RACE_BLACK', type='number', startIndex=40, endIndex=41, - required=True, validators=[validators.validateRace()]), + required=False, validators=[validators.validateRace()]), Field(item="16E", name='RACE_HAWAIIAN', type='number', startIndex=41, endIndex=42, - required=True, validators=[validators.validateRace()]), + required=False, validators=[validators.validateRace()]), Field(item="16F", name='RACE_WHITE', type='number', startIndex=42, endIndex=43, - required=True, validators=[validators.validateRace()]), + required=False, validators=[validators.validateRace()]), Field(item="17", name='GENDER', type='number', startIndex=43, endIndex=44, required=True, validators=[validators.isInLimits(0, 9)]), Field(item="18A", name='REC_OASDI_INSURANCE', type='number', startIndex=44, endIndex=45, required=True, validators=[validators.isInLimits(0, 2)]), Field(item="18B", name='REC_FEDERAL_DISABILITY', type='number', startIndex=45, endIndex=46, - required=True, validators=[validators.isInLimits(0, 2)]), + required=False, validators=[validators.isInLimits(0, 2)]), Field(item="18C", name='REC_AID_TOTALLY_DISABLED', type='number', startIndex=46, endIndex=47, - required=True, validators=[validators.isInLimits(0, 2)]), + required=False, validators=[validators.isInLimits(0, 2)]), Field(item="18D", name='REC_AID_AGED_BLIND', type='number', startIndex=47, endIndex=48, - required=True, validators=[validators.isInLimits(0, 2)]), + required=False, validators=[validators.isInLimits(0, 2)]), Field(item="18E", name='REC_SSI', type='number', startIndex=48, endIndex=49, required=True, validators=[validators.isInLimits(1, 2)]), Field(item="19", name='MARITAL_STATUS', type='number', startIndex=49, endIndex=50, - required=True, validators=[validators.isInLimits(0, 5)]), + required=False, validators=[validators.isInLimits(0, 5)]), Field(item="20", name='RELATIONSHIP_HOH', type='string', startIndex=50, endIndex=52, required=True, validators=[validators.isInStringRange(1, 10)]), Field(item="21", name='PARENT_MINOR_CHILD', type='number', startIndex=52, endIndex=53, - required=True, validators=[validators.isInLimits(0, 2)]), + required=False, validators=[validators.isInLimits(0, 2)]), Field(item="22", name='NEEDS_OF_PREGNANT_WOMAN', type='number', startIndex=53, endIndex=54, - required=True, validators=[validators.isInLimits(0, 9)]), + required=False, validators=[validators.isInLimits(0, 9)]), Field(item="23", name='EDUCATION_LEVEL', type='string', startIndex=54, endIndex=56, - required=True, validators=[validators.or_validators(validators.isInStringRange(0, 16), + required=False, validators=[validators.or_validators(validators.isInStringRange(0, 16), validators.isInStringRange(98, 99))]), Field(item="24", name='CITIZENSHIP_STATUS', type='number', startIndex=56, endIndex=57, - required=True, validators=[validators.or_validators(validators.isInLimits(0, 3), + required=False, validators=[validators.or_validators(validators.isInLimits(0, 3), validators.matches(9))]), Field(item="25", name='EMPLOYMENT_STATUS', type='number', startIndex=57, endIndex=58, - required=True, validators=[validators.isInLimits(0, 3)]), + required=False, validators=[validators.isInLimits(0, 3)]), Field(item="26", name='AMOUNT_EARNED_INCOME', type='string', startIndex=58, endIndex=62, required=True, validators=[validators.isInStringRange(0, 9999)]), Field(item="27", name='AMOUNT_UNEARNED_INCOME', type='string', startIndex=62, endIndex=66,