Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
amaan-lob committed Jun 23, 2022
2 parents 594866f + 3c32e2c commit 234fc07
Show file tree
Hide file tree
Showing 10 changed files with 16,342 additions and 1,446 deletions.
9 changes: 9 additions & 0 deletions .spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ rules:
function: pattern
functionOptions:
notMatch: "int'l|Int'l"

oas3-valid-media-example:
description: "This format violates OpenAPI 3.1 rules"
message: "{{description}}"
severity: warn
given: "$"
then:
field: example
function: truthy
4 changes: 4 additions & 0 deletions actions/redoc/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,10 @@
.dFWqin pre[class*='language-']{background:#416581}
.dFWqin pre[class*='language-'] > code > span.token.string, .dFWqin pre[class*='language-'] > code > span.token.number, .dFWqin pre[class*='language-'] > code > span.token.constant, .dFWqin pre[class*='language-'] > code > span.token.boolean{color:#ecf0f5}
.dFWqin .token.property.string{color:#416581}
.jCdxGr .token.property.string{color:#416581}
.jCdxGr code[class*='language-']{color:#000000}
.jCdxGr code[class*='language-']{text-shadow:none}
.jCdxGr .token.string{color:#416581}
.coaOfs .token.property.string{color:#416581}
.coaOfs .token.boolean{color:#1878e0}
.coaOfs .token.atrule, .coaOfs .token.attr-value, .coaOfs .token.keyword{color:#1878e0}
Expand Down
116 changes: 3 additions & 113 deletions dist/lob-api-bundled.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Lob
version: 1.7.0
version: 1.7.3
description: >
The Lob API is organized around REST. Our API is designed to have
predictable, resource-oriented URLs and uses HTTP response codes to indicate
Expand Down Expand Up @@ -4743,64 +4743,6 @@ components:
- $ref: '#/components/schemas/billing_group_base'
- required:
- name
us_csv_verifications:
allOf:
- anyOf:
- title: US CSV file with a `city` and `state` column
required:
- city_mapping
- state_mapping
- title: US verification object with only a `postal_code` column
required:
- postal_code_mapping
- type: object
required:
- csv_file
- primary_line_mapping
properties:
csv_file:
type: string
description: The file path to the CSV of addresses you wish to verify.
recipient_mapping:
type: number
description: The index of the recipient column.
primary_line_mapping:
type: number
description: The index of the primary line column.
secondary_line_mapping:
type: number
description: The index of the secondary line column.
city_mapping:
type: number
description: >-
The index of the city column. `city_mapping` and `state_mapping`
are required if no `postal_code_mapping` is passed.
state_mapping:
type: number
description: >-
The index of the state column. `city_mapping` and
`state_mapping` are required if no `postal_code_mapping` is
passed.
postal_code_mapping:
type: number
description: >-
The index of the postal_code column. `postal_code_mapping` is
required if no `state_mapping` or `city_mapping` is passed.
us_csv_verifications_response:
type: object
properties:
id:
type: string
description: |
Unique identifier prefixed with csv_ver.
status:
type: string
description: |
Current status of your CSV verification. One of:
* Received
* Preprocessing
* Verification
* Emailing
recipient:
type: string
description: The intended recipient, typically a person's or firm's name.
Expand Down Expand Up @@ -7112,6 +7054,7 @@ components:
- to
- from
- file
- color
properties:
file:
description: >-
Expand Down Expand Up @@ -7186,6 +7129,7 @@ components:
description: >-
Set this key to `true` if you would like to print in color. Set
to `false` if you would like to print in black and white.
default: false
double_sided:
type: boolean
description: >-
Expand Down Expand Up @@ -8548,22 +8492,6 @@ components:
date_created: '2017-11-07T22:56:10.962Z'
date_modified: '2017-11-07T22:56:10.962Z'
object: billing_group
us_csv_verifications:
description: Returns ok
headers:
ratelimit-limit:
$ref: '#/components/headers/ratelimit-limit'
ratelimit-remaining:
$ref: '#/components/headers/ratelimit-remaining'
ratelimit-reset:
$ref: '#/components/headers/ratelimit-reset'
content:
application/json:
schema:
$ref: '#/components/schemas/us_csv_verifications_response'
example:
id: csv_ver_c7cb63d68f8d6
status: Received
us_verifications_error:
description: Error
content:
Expand Down Expand Up @@ -11671,44 +11599,6 @@ paths:

-d "description=Usage group used for the Marketing Department's
resource sends"
/us_csv_verifications:
post:
operationId: us_csv_verifications
summary: CSV Verify
description: >-
Verify a CSV of US or US territory addresses _with a live API key_. A
completed CSV will be emailed to your account once the cleansing and
verification process is finished. It's recommended that your CSV file is
under 250k lines. The endpoint requires a `csv_file` and the index of
your column headers. The columns should be 1-indexed For example if you
have a CSV with address primary lines in the first column and all postal
codes in the 5th column, pass in `primary_line_mapping` as 1 and
`postal_code_mapping` as 5.
tags:
- US Verifications
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/us_csv_verifications'
examples:
basic:
value:
csv_file: example_csv_file.csv
primary_line_mapping: 1
postal_code_mapping: 5
full_payload:
value:
csv_file: example_csv_file.csv
primary_line_mapping: 1
secondary_line_mapping: 2
city_mapping: 3
state_mapping: 4
postal_code_mapping: 5
responses:
'200':
$ref: '#/components/responses/us_csv_verifications'
/bulk/us_verifications:
post:
operationId: bulk_us_verifications
Expand Down
Loading

0 comments on commit 234fc07

Please sign in to comment.