Skip to content

Commit

Permalink
CMB-712: add source_material property (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinmurali authored Jul 16, 2024
1 parent e7b58e8 commit e07451f
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 25 deletions.
47 changes: 25 additions & 22 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lob-api-public.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3

Check warning on line 1 in lob-api-public.yml

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-valid-media-example

This format violates OpenAPI 3.1 rules
info:
title: Lob
version: 1.19.37
version: 1.19.38
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 any API errors. <p>
license:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lob/openapi",
"version": "1.19.37",
"version": "1.19.38",
"engines": {
"node": ">=14.16.0",
"npm": ">=7.9.0"
Expand Down
11 changes: 11 additions & 0 deletions resources/booklets/attributes/booklet_source_material.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type: string

enum:
- 60# Gloss Text

description: >-
Defines the material used to create the mail piece, specifically for booklets.
This property is directly tied to the size of the booklet, ensuring that the appropriate material is selected based on the booklet's dimensions.
For booklets with `size` equal to `8.375x5.375` inches, the default source material is `60# Gloss Text`.
default: 60# Gloss Text
3 changes: 3 additions & 0 deletions resources/booklets/models/booklet_editable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ allOf:

pages:
$ref: "../attributes/booklet_pages.yml"

source_material:
$ref: "../attributes/booklet_source_material.yml"
3 changes: 3 additions & 0 deletions resources/booklets/models/booklet_generated_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ allOf:
status:
$ref: "../../../shared/attributes/status.yml"

source_material:
$ref: "../attributes/booklet_source_material.yml"

failure_reason:
allOf:
- $ref: "../../../shared/models/failure_reason/failure_reason.yml"
Expand Down
2 changes: 2 additions & 0 deletions resources/booklets/responses/all_booklets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ content:
name: Harry
size: 8.375x5.375
pages: 8
source_material: 60# Gloss Text
expected_delivery_date: "2021-03-24"
date_created: "2021-03-16T18:40:40.504Z"
date_modified: "2021-03-16T18:40:40.504Z"
Expand Down Expand Up @@ -132,6 +133,7 @@ content:
name: Harry
size: 8.375x5.375
pages: 8
source_material: 60# Gloss Text
expected_delivery_date: "2021-03-24"
date_created: "2021-03-16T18:40:40.504Z"
date_modified: "2021-03-16T18:40:40.504Z"
Expand Down
1 change: 1 addition & 0 deletions resources/booklets/responses/booklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ application/json:
name: Harry
size: 8.375x5.375
pages: 8
source_material: 60# Gloss Text
expected_delivery_date: "2021-03-24"
date_created: "2021-03-16T18:40:40.504Z"
date_modified: "2021-03-16T18:40:40.504Z"
Expand Down

0 comments on commit e07451f

Please sign in to comment.