Skip to content

Commit

Permalink
Merge pull request #145 from fecgov/release/sprint-17
Browse files Browse the repository at this point in the history
Release/sprint 17
  • Loading branch information
mjtravers authored Dec 14, 2022
2 parents 92aba4f + 9f6f854 commit 8fa828a
Show file tree
Hide file tree
Showing 75 changed files with 11,063 additions and 38 deletions.
2 changes: 1 addition & 1 deletion bin/generate-schema-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SCHEMAS=$(ls -m *.json | tr -d '[:space:]')
generate-schema-doc ${SCHEMAS} ../docs

# Remove fontawesome script that throws warnings in SonarCloud
sed -e 's/<script src=https:\/\/use\.fontawesome\.com\/facf9fa52c\.js><\/script>//g' -i ../docs/*.html
sed -e 's/<script src=https:\/\/use\.fontawesome\.com\/facf9fa52c\.js><\/script>//g' -i '' ../docs/*.html

# Generate spec files
for schema in ${SCHEMAS//,/ }
Expand Down
18 changes: 18 additions & 0 deletions docs/BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT.html

Large diffs are not rendered by default.

212 changes: 212 additions & 0 deletions docs/BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT_spec.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
<!DOCTYPE html><html lang="en"><head><title>BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT</title><link rel="stylesheet" href="spec_table.css"></head><body><table><caption>Specification for BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT</caption><tr>
<th>FIELD DESCRIPTION</th>
<th>TYPE</th>
<th>REQUIRED</th>
<th>SAMPLE DATA</th>
<th>VALUE REFERENCE</th>
<th>RULE REFERENCE</th>
<th>FIELD FORM ASSOCIATION</th>
<th>VALIDATION RULES</th>
</tr>
<tr>
<td>FORM TYPE</td>
<td>A/N-8</td>
<td>X (error)</td>
<td>SA17</td>
<td>SA[line# ref]</td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>must equal: SA17</li></td>
</tr>
<tr>
<td>FILER COMMITTEE ID NUMBER</td>
<td>A/N-9</td>
<td>X (error)</td>
<td>C00123456</td>
<td></td>
<td>this is the ID of the Committee Account the report/transaction is associated with</td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 9</li><li>max length: 9</li><li>regex: ^(?:[PC][0-9]{8}|[HS][0-9]{1}[A-Z]{2}[0-9]{5})$</li></td>
</tr>
<tr>
<td>TRANSACTION TYPE IDENTIFIER</td>
<td>A/N-12</td>
<td>X (error)</td>
<td>BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>must equal: BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT</li></td>
</tr>
<tr>
<td>TRANSACTION ID</td>
<td>A/N-20</td>
<td>X (error)</td>
<td>A56123456789-1234</td>
<td></td>
<td>Must be unique for the life of a report (original + amendments) within each committee account. Letters, if included, must be uppercase.</td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 0</li><li>max length: 20</li><li>regex: ^[ -~]{0,20}$</li></td>
</tr>
<tr>
<td>BACK REFERENCE TRAN ID NUMBER</td>
<td>A/N-20</td>
<td></td>
<td>A123456789-1234</td>
<td></td>
<td>Reference to the Tran ID of a Related Record</td>
<td></td>
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 20</li><li>regex: ^[ -~]{0,20}$</li></td>
</tr>
<tr>
<td>BACK REFERENCE SCHED NAME</td>
<td>A/N-8</td>
<td></td>
<td>SA17</td>
<td>SA17</td>
<td>Ref to the Schedule that has the Related Record. SA3L must be used
with the F3L</td>
<td></td>
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 8</li><li>regex: ^[ -~]{0,8}$</li></td>
</tr>
<tr>
<td>ENTITY TYPE</td>
<td>A/N-3</td>
<td>X (error)</td>
<td>ORG</td>
<td>ORG only</td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>must equal: ORG</li></td>
</tr>
<tr>
<td>CONTRIBUTOR ORGANIZATION NAME</td>
<td>A/N-200</td>
<td>X (error)</td>
<td>Jo Smith & Co.</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 0</li><li>max length: 200</li><li>regex: ^[ -~]{0,200}$</li></td>
</tr>
<tr>
<td>CONTRIBUTOR STREET 1</td>
<td>A/N-34</td>
<td>X (error)</td>
<td>123 Main Street</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 0</li><li>max length: 34</li><li>regex: ^[ -~]{0,34}$</li></td>
</tr>
<tr>
<td>CONTRIBUTOR STREET 2</td>
<td>A/N-34</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 34</li><li>regex: ^[ -~]{0,34}$</li></td>
</tr>
<tr>
<td>CONTRIBUTOR CITY</td>
<td>A/N-30</td>
<td>X (error)</td>
<td>Anytown</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 0</li><li>max length: 30</li><li>regex: ^[ -~]{0,30}$</li></td>
</tr>
<tr>
<td>CONTRIBUTOR STATE</td>
<td>A/N-2</td>
<td>X (error)</td>
<td>WA</td>
<td>AK,AL,...,ZZ</td>
<td>Edit: ST</td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 0</li><li>max length: 2</li><li>regex: ^[ -~]{0,2}$</li></td>
</tr>
<tr>
<td>CONTRIBUTOR ZIP</td>
<td>A/N-9</td>
<td>X (error)</td>
<td>981110123</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 0</li><li>max length: 9</li><li>regex: ^[ -~]{0,9}$</li></td>
</tr>
<tr>
<td>CONTRIBUTION DATE</td>
<td>NUM-8</td>
<td>X (error)</td>
<td>20120615</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 10</li><li>regex: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$</li></td>
</tr>
<tr>
<td>CONTRIBUTION AMOUNT</td>
<td>AMT-12</td>
<td>X (error)</td>
<td>250</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: number</li><li>minimum: -99999999.99</li><li>maximum: 999999999.99</li></td>
</tr>
<tr>
<td>CONTRIBUTION AGGREGATE</td>
<td>AMT-12</td>
<td>X (error)</td>
<td>1000</td>
<td></td>
<td>YTD</td>
<td></td>
<td><ul><li>REQUIRED</li><li>type: number</li><li>minimum: -99999999.99</li><li>maximum: 999999999.99</li></td>
</tr>
<tr>
<td>AGGREGATION GROUP</td>
<td>A/N-100</td>
<td>X (error)</td>
<td>NON_CONTRIBUTION_ACCOUNT</td>
<td></td>
<td></td>
<td></td>
<td><ul><li>REQUIRED</li><li>must equal: NON_CONTRIBUTION_ACCOUNT</li></td>
</tr>
<tr>
<td>CONTRIBUTION PURPOSE DESCRIPTION</td>
<td>A/N-100</td>
<td>X (error)</td>
<td>Non-contribution Account Receipt</td>
<td></td>
<td>Non-contribution Account Receipt</td>
<td></td>
<td><ul><li>REQUIRED</li><li>must equal: Non-contribution Account Receipt</li></td>
</tr>
<tr>
<td>MEMO CODE</td>
<td>A/N-1</td>
<td></td>
<td></td>
<td>X</td>
<td>X = True</td>
<td></td>
<td><ul><li>type: ['boolean', 'null']</li></td>
</tr>
<tr>
<td>MEMO TEXT/DESCRIPTION</td>
<td>A/N-100</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 100</li><li>regex: ^[ -~]{0,100}$</li></td>
</tr>
</table></body></html>
2 changes: 1 addition & 1 deletion docs/Contact_Candidate.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
</pre></div> </div> </div> </div> </div> </div> <div class=accordion id=accordionoccupation> <div class=card> <div class=card-header id=headingoccupation> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#occupation aria-expanded aria-controls=occupation onclick="setAnchor('#occupation')"><span class=property-name>occupation</span></button> </h2> </div> <div id=occupation class="collapse property-definition-div" aria-labelledby=headingoccupation data-parent=#accordionoccupation> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#occupation onclick="anchorLink('occupation')">occupation</a></div><span class="badge badge-dark value-type">Type: string or null</span><br> <span class=pattern-value id=occupation_pattern>Must match regular expression: <code>^[ -~]{0,38}$</code></span> <br> <div class="badge badge-secondary">Example:</div> <br><div id=occupation_ex1 class="jumbotron examples"><div class=highlight><pre><span></span><span class=s2>&quot;QC Inspector&quot;</span><span class=w></span>
</pre></div> </div> </div> </div> </div> </div> <div class=accordion id=accordioncandidate_office> <div class=card> <div class=card-header id=headingcandidate_office> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#candidate_office aria-expanded aria-controls=candidate_office onclick="setAnchor('#candidate_office')"><span class=property-name>candidate_office</span> <span class="badge badge-warning required-property">Required</span></button> </h2> </div> <div id=candidate_office class="collapse property-definition-div" aria-labelledby=headingcandidate_office data-parent=#accordioncandidate_office> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#candidate_office onclick="anchorLink('candidate_office')">candidate_office</a></div><span class="badge badge-dark value-type">Type: enum (of string)</span><br> <div class=enum-value id=candidate_office_enum> <h4>Must be one of:</h4> <ul class=list-group><li class="list-group-item enum-item">"H"</li><li class="list-group-item enum-item">"S"</li><li class="list-group-item enum-item">"P"</li></ul> </div> <br> <div class="badge badge-secondary">Example:</div> <br><div id=candidate_office_ex1 class="jumbotron examples"><div class=highlight><pre><span></span><span class=s2>&quot;H\nS\nP&quot;</span><span class=w></span>
</pre></div> </div> </div> </div> </div> </div> <div class=accordion id=accordioncandidate_state> <div class=card> <div class=card-header id=headingcandidate_state> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#candidate_state aria-expanded aria-controls=candidate_state onclick="setAnchor('#candidate_state')"><span class=property-name>candidate_state</span></button> </h2> </div> <div id=candidate_state class="collapse property-definition-div" aria-labelledby=headingcandidate_state data-parent=#accordioncandidate_state> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#candidate_state onclick="anchorLink('candidate_state')">candidate_state</a></div><span class="badge badge-dark value-type">Type: string or null</span><br> <span class=pattern-value id=candidate_state_pattern>Must match regular expression: <code>^[A-Z]{2}$</code></span> <br> <div class="badge badge-secondary">Example:</div> <br><div id=candidate_state_ex1 class="jumbotron examples"><div class=highlight><pre><span></span><span class=s2>&quot;WA&quot;</span><span class=w></span>
</pre></div> </div> </div> </div> </div> </div> <div class=accordion id=accordioncandidate_district> <div class=card> <div class=card-header id=headingcandidate_district> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#candidate_district aria-expanded aria-controls=candidate_district onclick="setAnchor('#candidate_district')"><span class=property-name>candidate_district</span></button> </h2> </div> <div id=candidate_district class="collapse property-definition-div" aria-labelledby=headingcandidate_district data-parent=#accordioncandidate_district> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#candidate_district onclick="anchorLink('candidate_district')">candidate_district</a></div><span class="badge badge-dark value-type">Type: string or null</span><br> <span class=pattern-value id=candidate_district_pattern>Must match regular expression: <code>^[0-9]{2}$</code></span> </div> </div> </div> </div> <div class=accordion id=accordiontelephone> <div class=card> <div class=card-header id=headingtelephone> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#telephone aria-expanded aria-controls=telephone onclick="setAnchor('#telephone')"><span class=property-name>telephone</span></button> </h2> </div> <div id=telephone class="collapse property-definition-div" aria-labelledby=headingtelephone data-parent=#accordiontelephone> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#telephone onclick="anchorLink('telephone')">telephone</a></div><span class="badge badge-dark value-type">Type: string or null</span><br> <span class=pattern-value id=telephone_pattern>Must match regular expression: <code>^\+\d{1,3} \d{10}$</code></span> </div> </div> </div> </div> <div class=accordion id=accordioncountry> <div class=card> <div class=card-header id=headingcountry> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#country aria-expanded aria-controls=country onclick="setAnchor('#country')"><span class=property-name>country</span> <span class="badge badge-warning required-property">Required</span></button> </h2> </div> <div id=country class="collapse property-definition-div" aria-labelledby=headingcountry data-parent=#accordioncountry> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#country onclick="anchorLink('country')">country</a></div><span class="badge badge-dark value-type">Type: string</span><br> </div> </div> </div> </div> <footer> <p class=generated-by-footer>Generated using <a href=https://github.com/coveooss/json-schema-for-humans>json-schema-for-humans</a> on 2022-11-03 at 10:50:24 -0400</p> </footer></body> </html>
</pre></div> </div> </div> </div> </div> </div> <div class=accordion id=accordioncandidate_district> <div class=card> <div class=card-header id=headingcandidate_district> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#candidate_district aria-expanded aria-controls=candidate_district onclick="setAnchor('#candidate_district')"><span class=property-name>candidate_district</span></button> </h2> </div> <div id=candidate_district class="collapse property-definition-div" aria-labelledby=headingcandidate_district data-parent=#accordioncandidate_district> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#candidate_district onclick="anchorLink('candidate_district')">candidate_district</a></div><span class="badge badge-dark value-type">Type: string or null</span><br> <span class=pattern-value id=candidate_district_pattern>Must match regular expression: <code>^[0-9]{2}$</code></span> </div> </div> </div> </div> <div class=accordion id=accordiontelephone> <div class=card> <div class=card-header id=headingtelephone> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#telephone aria-expanded aria-controls=telephone onclick="setAnchor('#telephone')"><span class=property-name>telephone</span></button> </h2> </div> <div id=telephone class="collapse property-definition-div" aria-labelledby=headingtelephone data-parent=#accordiontelephone> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#telephone onclick="anchorLink('telephone')">telephone</a></div><span class="badge badge-dark value-type">Type: string or null</span><br> <span class=pattern-value id=telephone_pattern>Must match regular expression: <code>^\+\d{1,3} \d{10}$</code></span> </div> </div> </div> </div> <div class=accordion id=accordioncountry> <div class=card> <div class=card-header id=headingcountry> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#country aria-expanded aria-controls=country onclick="setAnchor('#country')"><span class=property-name>country</span> <span class="badge badge-warning required-property">Required</span></button> </h2> </div> <div id=country class="collapse property-definition-div" aria-labelledby=headingcountry data-parent=#accordioncountry> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#country onclick="anchorLink('country')">country</a></div><span class="badge badge-dark value-type">Type: string</span><br> </div> </div> </div> </div> <footer> <p class=generated-by-footer>Generated using <a href=https://github.com/coveooss/json-schema-for-humans>json-schema-for-humans</a> on 2022-11-17 at 14:57:54 -0500</p> </footer></body> </html>
Loading

0 comments on commit 8fa828a

Please sign in to comment.