diff --git a/.circleci/config.yml b/.circleci/config.yml index cfca57a6..6e9a2945 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,7 +32,7 @@ jobs: - run: name: Run python tests, save a coverage report, and save coverage percentage command: | - pytest --cov=. --cov-report=xml --cov-report=html:htmlcov_py --cov-report=term | tee pytest.out + python3 -m pytest --cov=. --cov-report=xml --cov-report=html:htmlcov_py --cov-report=term | tee pytest.out export NEW_PYTHON_LINES=$(cat pytest.out | grep TOTAL | awk '{print $2}' | grep -oE "[0-9]+" ) export NEW_PYTHON_HITS=$(($NEW_PYTHON_LINES - $(cat pytest.out | grep TOTAL | awk '{print $3}' | grep -oE "[0-9]+" ))) export NEW_PYTHON_PERCENT=$(cat pytest.out | grep TOTAL | awk '{print $4}' | grep -oE "[0-9]+" ) diff --git a/.gitignore b/.gitignore index 934b19f9..ba8603c4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.pot *.pyc *.pyo +.venv/ build/ dist/ helloworld.db diff --git a/bin/schema-update-utility.py b/bin/schema-update-utility.py index 74dedf75..ad058f48 100644 --- a/bin/schema-update-utility.py +++ b/bin/schema-update-utility.py @@ -11,18 +11,36 @@ def encoder_override(obj): if isinstance(obj, Decimal): # We block out Decimals in | symbols so that we can # clean them of their surrounding quotation marks later. - return '|'+str(obj)+'|' + return "|" + str(obj) + "|" return json.JSONEncoder.default(obj) def restore_decimal_values(json_string): regex = re.compile(r'"\|(.*)\|"') - return regex.sub('\\1', json_string) + return regex.sub("\\1", json_string) def process(file, schema): - print('*** ' + file) + print("*** " + file) + + report_type = { + "title": "REPORT TYPE", + "description": "", + "type": "string", + "maxLength": 5, + "examples": ["F3X"], + "fec_spec": { + "FIELD_DESCRIPTION": "REPORT TYPE", + "TYPE": "A/N-100", + "REQUIRED": "X (error)", + "SAMPLE DATA": "F3X", + "VALUE REFERENCE": None, + "RULE REFERENCE": None, + "FIELD_FORM_ASSOCIATION": None, + }, + } + # if 'filer_committee_id_number' in schema['properties']: # schema['properties']['filer_committee_id_number']['pattern'] = \ # '^[C|P][0-9]{8}$|^[H|S][0-9]{1}[A-Z]{2}[0-9]{5}$' @@ -41,47 +59,51 @@ def process(file, schema): # for property_key in schema['properties'].keys(): # del schema['properties'][property_key]['fec_spec']['COL_SEQ'] - properties = schema['properties'] - conditionals = schema.get('allOf', []) + # properties = schema['properties'] + # conditionals = schema.get('allOf', []) changed = False - for property in properties.keys(): - property_type = properties[property].get('type', []) - if property in schema.get('required', []): - if properties[property].get('minLength') == 0: - properties[property]['minLength'] = 1 - changed = True - - if isinstance(property_type, list): - if "null" in property_type: - properties[property]['type'] = "string" - changed = True - - if "examples" in properties[property]: - examples = properties[property]["examples"] - if "none" in examples: - examples.remove("none") - changed = True - - for condition in conditionals: - if property in condition['then'].get('required', []): - if property in condition['then']: - if condition['then'][property].get('minLength') == 0: - condition['then'][property]['minLength'] = 1 - changed = True - - if isinstance(property_type, list): - if "none" in property_type: - condition['then'][property]['type'] = 'string' - changed = True + if "report_type" in schema["properties"]: + schema["properties"]["report_type"] = report_type + schema["required"].pop(0) + changed = True + + # for property in properties.keys(): + # property_type = properties[property].get('type', []) + # if property in schema.get('required', []): + # if properties[property].get('minLength') == 0: + # properties[property]['minLength'] = 1 + # changed = True + + # if isinstance(property_type, list): + # if "null" in property_type: + # properties[property]['type'] = "string" + # changed = True + + # if "examples" in properties[property]: + # examples = properties[property]["examples"] + # if "none" in examples: + # examples.remove("none") + # changed = True + + # for condition in conditionals: + # if property in condition['then'].get('required', []): + # if property in condition['then']: + # if condition['then'][property].get('minLength') == 0: + # condition['then'][property]['minLength'] = 1 + # changed = True + + # if isinstance(property_type, list): + # if "none" in property_type: + # condition['then'][property]['type'] = 'string' + # changed = True return [schema, changed] -exclude_file_list = [ -] +exclude_file_list = [] -for file in (glob.glob('*.json')): +for file in glob.glob("*.json"): if file in exclude_file_list: continue @@ -93,7 +115,7 @@ def process(file, schema): schema, changed = process(file, schema) if changed: - f = open(file, 'w') + f = open(file, "w") output = json.dumps(schema, indent=4, default=encoder_override) cleaned_output = restore_decimal_values(output) diff --git a/docs/BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT.html b/docs/BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT.html index db11700c..1372db2f 100644 --- a/docs/BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT.html +++ b/docs/BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT.html @@ -1,4 +1,5 @@ -
Non-contribution Account (17)
"SA17"
"SA17"
+ FEC Non-contribution Account FEC Non-contribution Account
Type: object
Non-contribution Account (17)
Type: string
Must be at most 5
characters long
Example:
"F3X"
+
Type: const
Specific value: "SA17"
Example:
"SA17"
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 9
characters long
Must be at most 9
characters long
Example:
"C00123456"
Type: const
Specific value: "BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT"
Example:
"BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT"
Type: string
Must match regular expression: ^[ -~]{0,20}$
Must be at least 1
characters long
Must be at most 20
characters long
Example:
"A56123456789-1234"
@@ -16,4 +17,4 @@
Type: const
Specific value: "NON_CONTRIBUTION_ACCOUNT"
Example:
"NON_CONTRIBUTION_ACCOUNT"
Type: const
Specific value: "Non-contribution Account"
Example:
"Non-contribution Account"
Type: boolean or null
Type: string or null
Must match regular expression: ^[ -~]{0,100}$
Type: enum (of string or null)
Must be one of:
- "REATTRIBUTED"
- "REDESIGNATED"
- "REATTRIBUTION_FROM"
- "REATTRIBUTION_TO"
- "REDESIGNATION_FROM"
- "REDESIGNATION_TO"
- null
Example:
"REATTRIBUTED"
-
\ No newline at end of file
+
SCHEDULE C1 - LOANS AND LINES OF CREDIT FROM LENDING INSTITUTIONS
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
true
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
true
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
true
Must be at least 10
characters long
^[ -~]{0,8}$
Must be at least 1
characters long
Must be at most 8
characters long
"SC1/10"
+ FEC C1 - Loan Agreement FEC C1 - Loan Agreement
SCHEDULE C1 - LOANS AND LINES OF CREDIT FROM LENDING INSTITUTIONS
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: true
Type: object
Type: string
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: number
Type: object
Type: number
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: true
Type: object
Type: string
Type: number
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: true
Type: object
Type: string
Type: number
Type: string
Must be at least 10
characters long
Type: string
Type: string
Type: string
Type: string
Type: string
Type: string
Must be at most 5
characters long
Example:
"F3X"
+
Type: string
Must match regular expression: ^[ -~]{0,8}$
Must be at least 1
characters long
Must be at most 8
characters long
Example:
"SC1/10"
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 1
characters long
Must be at most 9
characters long
Example:
"C00123456"
Type: const
Specific value: "C1_LOAN_AGREEMENT"
Example:
"C1_LOAN_AGREEMENT"
Type: string
Must match regular expression: ^[ -~]{0,20}$
Must be at least 1
characters long
Must be at most 20
characters long
Example:
"C123456789-3456-001"
@@ -31,4 +32,4 @@
\ No newline at end of file
+
SCHEDULE C2 - LOAN GUARANTOR NAME & ADDRESS INFORMATION (SUPPLEMENTARY FOR INFORMATION FOUND ON SCHEDULE C)
Type: objectIf the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Value must be greater or equal to 200.01
Must be at least 1
characters long
Must be at least 1
characters long
SCHEDULE C2 - LOAN GUARANTOR NAME & ADDRESS INFORMATION (SUPPLEMENTARY FOR INFORMATION FOUND ON SCHEDULE C)
Type: objectIf the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Value must be greater or equal to 200.01
Must be at least 1
characters long
Must be at least 1
characters long
Contribution to Candidate (Line 23), Void of Contribution to Candidate (Line 23)
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
^O\d{4}$
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"CONTRIBUTION_TO_CANDIDATE_VOID"
Value must be strictly lesser than 0
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"H"
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"S"
"SB23"
"SB23"
+ FEC Contribution to Candidate, Void of Contribution to Candidate FEC Contribution to Candidate, Void of Contribution to Candidate
Contribution to Candidate (Line 23), Void of Contribution to Candidate (Line 23)
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: string
Must match regular expression: ^O\d{4}$
Type: object
Type: string
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "CONTRIBUTION_TO_CANDIDATE_VOID"
Type: object
Type: number
Value must be strictly lesser than 0
Type: string
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "H"
Type: object
Type: string
Type: string
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "S"
Type: object
Type: string
Type: string
Must be at most 5
characters long
Example:
"F3X"
+
Type: const
Specific value: "SB23"
Example:
"SB23"
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 9
characters long
Must be at most 9
characters long
Example:
"C00123456"
Type: enum (of string)
Must be one of:
- "CONTRIBUTION_TO_CANDIDATE"
- "CONTRIBUTION_TO_CANDIDATE_VOID"
Example:
"CANDIDATE_CONTRIBUTIONS"
Type: string
Must match regular expression: ^[ -~]{0,20}$
Must be at least 1
characters long
Must be at most 20
characters long
Example:
"A56123456789-1234"
@@ -20,4 +21,4 @@
Type: string or null
Must match regular expression: ^[A-Z]{2}$
Example:
"FL"
Type: string or null
Must match regular expression: ^[0-9]{2}$
Example:
35
Type: boolean or null
Type: string or null
Must match regular expression: ^[ -~]{0,100}$
Type: enum (of string or null)
Must be one of:
- "REATTRIBUTED"
- "REDESIGNATED"
- "REATTRIBUTION_FROM"
- "REATTRIBUTION_TO"
- "REDESIGNATION_FROM"
- "REDESIGNATION_TO"
- null
Example:
"REATTRIBUTED"
-
\ No newline at end of file
+
SCHEDULE B - PAC In-Kind Out (Line 21b), Party In-Kind Out (Line 21b), In-Kind Transfer Out (Line 21b), In-Kind Transfer FEA Out (Line 30b)
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"SB21B"
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"IN_KIND_TRANSFER_FEA_OUT"
"SB30B"
"SB21B"
+ FEC PAC In-Kind Out (Line 21b), Party In-Kind Out (Line 21b), In-Kind Transfer Out (Line 21b), In-Kind Transfer FEA Out (Line 30b) FEC PAC In-Kind Out (Line 21b), Party In-Kind Out (Line 21b), In-Kind Transfer Out (Line 21b), In-Kind Transfer FEA Out (Line 30b)
SCHEDULE B - PAC In-Kind Out (Line 21b), Party In-Kind Out (Line 21b), In-Kind Transfer Out (Line 21b), In-Kind Transfer FEA Out (Line 30b)
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: enum (of string)
Must be one of:
- "PAC_IN_KIND_OUT"
- "PARTY_IN_KIND_OUT"
- "IN_KIND_TRANSFER_OUT"
Type: object
Type: const
Specific value: "SB21B"
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "IN_KIND_TRANSFER_FEA_OUT"
Type: object
Type: const
Specific value: "SB30B"
Type: string
Must be at most 5
characters long
Example:
"F3X"
+
Type: enum (of string)
Must be one of:
- "SB21B"
- "SB30B"
Example:
"SB21B"
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 9
characters long
Must be at most 9
characters long
Example:
"C00123456"
Type: enum (of string)
Must be one of:
- "PAC_IN_KIND_OUT"
- "PARTY_IN_KIND_OUT"
- "IN_KIND_TRANSFER_OUT"
- "IN_KIND_TRANSFER_FEA_OUT"
Example:
"PAC_IN_KIND_OUT"
Type: string
Must match regular expression: ^[ -~]{0,20}$
Must be at least 1
characters long
Must be at most 20
characters long
Example:
"B56123456789-1234"
@@ -18,4 +19,4 @@
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 1
characters long
Must be at most 9
characters long
Example:
"C00654323"
Type: string
Must match regular expression: ^[ -~]{0,200}$
Must be at least 1
characters long
Must be at most 200
characters long
Example:
"John Smith & Co."
Type: boolean or null
Type: string or null
Must match regular expression: ^[ -~]{0,100}$
Type: enum (of string or null)
Must be one of:
- "REATTRIBUTED"
- "REDESIGNATED"
- "REATTRIBUTION_FROM"
- "REATTRIBUTION_TO"
- "REDESIGNATION_FROM"
- "REDESIGNATION_TO"
- null
Example:
"REATTRIBUTED"
-
\ No newline at end of file
+
Party In-Kind (11b). PAC In-Kind (11c), In-Kind Transfer (12), In-Kind Transfer - Federal Election Activity (12)
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"PARTY_IN_KIND_RECEIPT"
"SA11B"
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"PAC_IN_KIND_RECEIPT"
"SA11C"
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"SA12"
"SA12"
+ FEC Party In-Kind (11b). PAC In-Kind (11c), In-Kind Transfer (12), In-Kind Transfer - Federal Election Activity (12) FEC Party In-Kind (11b). PAC In-Kind (11c), In-Kind Transfer (12), In-Kind Transfer - Federal Election Activity (12)
Party In-Kind (11b). PAC In-Kind (11c), In-Kind Transfer (12), In-Kind Transfer - Federal Election Activity (12)
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "PARTY_IN_KIND_RECEIPT"
Type: object
Type: const
Specific value: "SA11B"
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "PAC_IN_KIND_RECEIPT"
Type: object
Type: const
Specific value: "SA11C"
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: enum (of string)
Must be one of:
- "IN_KIND_TRANSFER"
- "IN_KIND_TRANSFER_FEDERAL_ELECTION_ACTIVITY"
Type: object
Type: const
Specific value: "SA12"
Type: string
Must be at most 5
characters long
Example:
"F3X"
+
Type: enum (of string)
Must be one of:
- "SA11B"
- "SA11C"
- "SA12"
Example:
"SA12"
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 9
characters long
Must be at most 9
characters long
Example:
"C00123456"
Type: enum (of string)
Must be one of:
- "PARTY_IN_KIND_RECEIPT"
- "PAC_IN_KIND_RECEIPT"
- "IN_KIND_TRANSFER"
- "IN_KIND_TRANSFER_FEDERAL_ELECTION_ACTIVITY"
Example:
"PARTY_IN_KIND_RECEIPT"
Type: string
Must match regular expression: ^[ -~]{0,20}$
Must be at least 1
characters long
Must be at most 20
characters long
Example:
"A56123456789-1234"
@@ -16,4 +17,4 @@
Type: const
Specific value: "GENERAL"
Example:
"GENERAL"
Type: string
Must match regular expression: ^In-Kind: [ -~]{1,91}$
Must be at least 1
characters long
Must be at most 100
characters long
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 1
characters long
Must be at most 9
characters long
Type: string
Must match regular expression: ^[ -~]{0,200}$
Must be at least 1
characters long
Must be at most 200
characters long
Example:
"Action PAC"
Type: boolean or null
Type: string or null
Must match regular expression: ^[ -~]{0,100}$
Type: enum (of string or null)
Must be one of:
- "REATTRIBUTED"
- "REDESIGNATED"
- "REATTRIBUTION_FROM"
- "REATTRIBUTION_TO"
- "REDESIGNATION_FROM"
- "REDESIGNATION_TO"
- null
Example:
"REATTRIBUTED"
-
\ No newline at end of file
+
Conduit Earmark (Deposited), Conduit Earmark (Undeposited) (11a)
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Value must be greater or equal to 200.01
Must be at least 1
characters long
Must be at least 1
characters long
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"CONDUIT_EARMARK_RECEIPT_DEPOSITED"
false
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"CONDUIT_EARMARK_RECEIPT_UNDEPOSITED"
true
"SA11AI"
+ FEC Conduit Earmarks FEC Conduit Earmarks
Conduit Earmark (Deposited), Conduit Earmark (Undeposited) (11a)
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: number
Value must be greater or equal to 200.01
Type: object
Type: string
Must be at least 1
characters long
Type: string
Must be at least 1
characters long
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "CONDUIT_EARMARK_RECEIPT_DEPOSITED"
Type: object
Type: const
Specific value: false
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "CONDUIT_EARMARK_RECEIPT_UNDEPOSITED"
Type: object
Type: const
Specific value: true
The following properties are required:
- donor_committee_fec_id
- donor_committee_name
Type: string
Must be at most 5
characters long
Example:
"F3X"
+
Type: enum (of string)
Must be one of:
- "SA11AI"
- "SA11AII"
Example:
"SA11AI"
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 9
characters long
Must be at most 9
characters long
Example:
"C00123456"
Type: enum (of string)
Must be one of:
- "CONDUIT_EARMARK_RECEIPT_DEPOSITED"
- "CONDUIT_EARMARK_RECEIPT_UNDEPOSITED"
Example:
"CONDUIT_EARMARK_RECEIPT_DEPOSITED"
Type: string
Must match regular expression: ^[ -~]{0,20}$
Must be at least 1
characters long
Must be at most 20
characters long
Example:
"A56123456789-1234"
@@ -19,4 +20,4 @@
Type: string
Must match regular expression: ^Earmarked for [ -~]{0,74} \(Committee\)$
Must be at least 1
characters long
Must be at most 100
characters long
Type: string or null
Must match regular expression: ^[ -~]{0,38}$
Example:
"XYZ Company"
Type: string or null
Must match regular expression: ^[ -~]{0,38}$
Example:
"QC Inspector"
Type: boolean
Type: string or null
Must match regular expression: ^[ -~]{0,100}$
Type: enum (of string or null)
Must be one of:
- "REATTRIBUTED"
- "REDESIGNATED"
- "REATTRIBUTION_FROM"
- "REATTRIBUTION_TO"
- "REDESIGNATION_FROM"
- "REDESIGNATION_TO"
- null
Example:
"REATTRIBUTED"
-
\ No newline at end of file
+
Conduit Earmark Out (Deposited), Conduit Earmark Out (Undeposited), PAC Conduit Earmark Out (Deposited), PAC Conduit Earmark Out (Undeposited) (Line 23)
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
^Earmarked from [ -~]{0,72} \(Individual\)$
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
^Earmarked from [ -~]{0,73} \(Committee\)$
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
^O\d{4}$
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"H"
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"S"
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
false
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
true
"SB23"
"SB23"
+ FEC Conduit Earmark Outs FEC Conduit Earmark Outs
Conduit Earmark Out (Deposited), Conduit Earmark Out (Undeposited), PAC Conduit Earmark Out (Deposited), PAC Conduit Earmark Out (Undeposited) (Line 23)
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: enum (of string)
Must be one of:
- "CONDUIT_EARMARK_OUT_DEPOSITED"
- "CONDUIT_EARMARK_OUT_UNDEPOSITED"
Type: object
Type: string
Must match regular expression: ^Earmarked from [ -~]{0,72} \(Individual\)$
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: enum (of string)
Must be one of:
- "PAC_CONDUIT_EARMARK_OUT_DEPOSITED"
- "PAC_CONDUIT_EARMARK_OUT_UNDEPOSITED"
Type: object
Type: string
Must match regular expression: ^Earmarked from [ -~]{0,73} \(Committee\)$
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: string
Must match regular expression: ^O\d{4}$
Type: object
Type: string
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "H"
Type: object
Type: string
Type: string
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: const
Specific value: "S"
Type: object
Type: string
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: enum (of string)
Must be one of:
- "CONDUIT_EARMARK_OUT_DEPOSITED"
- "PAC_CONDUIT_EARMARK_OUT_DEPOSITED"
Type: object
Type: const
Specific value: false
Type: object
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Type: object
Type: enum (of string)
Must be one of:
- "CONDUIT_EARMARK_OUT_UNDEPOSITED"
- "PAC_CONDUIT_EARMARK_OUT_UNDEPOSITED"
Type: object
Type: const
Specific value: true
Type: string
Must be at most 5
characters long
Example:
"F3X"
+
Type: const
Specific value: "SB23"
Example:
"SB23"
Type: string
Must match regular expression: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$
Must be at least 9
characters long
Must be at most 9
characters long
Example:
"C00123456"
Type: enum (of string)
Must be one of:
- "CONDUIT_EARMARK_OUT_DEPOSITED"
- "CONDUIT_EARMARK_OUT_UNDEPOSITED"
- "PAC_CONDUIT_EARMARK_OUT_DEPOSITED"
- "PAC_CONDUIT_EARMARK_OUT_UNDEPOSITED"
Example:
"CONDUIT_EARMARK_RECEIPT_DEPOSITED"
Type: string
Must match regular expression: ^[ -~]{0,20}$
Must be at least 1
characters long
Must be at most 20
characters long
Example:
"A56123456789-1234"
@@ -21,4 +22,4 @@
Type: string or null
Must match regular expression: ^[ -~]{0,2}$
Example:
"FL"
Type: string or null
Must match regular expression: ^\d{2}$
Example:
35
Type: boolean
Type: string or null
Must match regular expression: ^[ -~]{0,100}$
Type: enum (of string or null)
Must be one of:
- "REATTRIBUTED"
- "REDESIGNATED"
- "REATTRIBUTION_FROM"
- "REATTRIBUTION_TO"
- "REDESIGNATION_FROM"
- "REDESIGNATION_TO"
- null
Example:
"REATTRIBUTED"
-
\ No newline at end of file
+
^[ -~]{0,38}$
"QC Inspector"
"H\nS\nP"
^[A-Z]{2}$
"WA"
-
^[0-9]{2}$
^\+\d{1,3} \d{10}$