Skip to content

Commit 1cec299

Browse files
committed
0.4.8 bug fix for access limitation validation
Signed-off-by: Neal Ensor <ensorn@osti.gov>
1 parent c7653f9 commit 1cec299

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,7 @@
118118
## 0.4.7 - 6/4/2025
119119
- Adding support for AuditLog information for workflow status transitions
120120
- improve documentation examples, add notes for two environments
121+
122+
## 0.4.8 - 6/5/2025
123+
- **bug** Fix issue with access limitation validation on new records
124+
- **bug** Fix typing of pams_publication_status field

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "elinkapi"
7-
version = "0.4.7"
7+
version = "0.4.8"
88
authors = [
99
{ name="Jacob Samar", email="samarj@osti.gov" },
1010
{ name="Neal Ensor", email="ensorn@osti.gov" }

src/elinkapi/record.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ class Record(BaseModel):
125125
opn_fieldoffice_acronym_code: str = None
126126
other_information: List[str] = None
127127
ouo_release_date: datetime.date = None
128-
pams_publication_status: int = None
128+
pams_publication_status: str = None
129129
pams_publication_status_other: str = None
130130
pams_authors: str = None
131+
pams_editors: str = None
131132
pams_product_sub_type: int = None
132133
pams_patent_country_code: str = None
133134
pams_transnational_patent_office: str = None
@@ -179,7 +180,7 @@ def access_limitation_validation(cls, value)->List[str]:
179180
bad_values.append(v)
180181
if bad_values:
181182
raise ValueError('Unknown Access Limitation value(s): {}'.format(','.join(bad_values)))
182-
return bad_values
183+
return value
183184

184185
@field_validator("product_type")
185186
@classmethod

0 commit comments

Comments
 (0)