Skip to content

Commit

Permalink
update m4/m5 validators
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Nov 20, 2023
1 parent 53255f5 commit a864600
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m4.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
startIndex=29,
endIndex=30,
required=True,
validators=[validators.isInLimits(1, 2)],
validators=[validators.isInLimits(1)],
),
Field(
item="8",
Expand All @@ -91,7 +91,7 @@
required=True,
validators=[
validators.or_validators(
validators.isInStringRange(1, 19), validators.matches("19")
validators.isInStringRange(1, 19), validators.matches("99")
)
],
),
Expand All @@ -102,7 +102,7 @@
startIndex=32,
endIndex=33,
required=True,
validators=[validators.isInLimits(1, 3)],
validators=[validators.isInLimits(1, 2)],
),
Field(
item="10`",
Expand All @@ -129,7 +129,7 @@
startIndex=35,
endIndex=36,
required=True,
validators=[validators.isInLimits(1, 3)],
validators=[validators.isInLimits(1, 2)],
),
Field(
item="-1",
Expand Down
6 changes: 3 additions & 3 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
condition_field="FAMILY_AFFILIATION",
condition_function=validators.isInLimits(1, 2),
result_field="PARENT_MINOR_CHILD",
result_function=validators.isInLimits(1, 3),
result_function=validators.isInLimits(1, 2),
),
validators.if_then_validator(
condition_field="FAMILY_AFFILIATION",
Expand Down Expand Up @@ -349,7 +349,7 @@
type="string",
startIndex=58,
endIndex=62,
required=True,
required=False,
validators=[validators.isInStringRange(0, 9999)],
),
Field(
Expand All @@ -358,7 +358,7 @@
type="string",
startIndex=62,
endIndex=66,
required=True,
required=False,
validators=[validators.isInStringRange(0, 9999)],
),
],
Expand Down

0 comments on commit a864600

Please sign in to comment.