Skip to content

Commit

Permalink
Bills: fix related entity person/org fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Jan 29, 2024
1 parent edbf970 commit 094c2f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ class Config:
class BillActionRelatedEntity(BaseModel):
name: str = Field(..., example="Senate Committee of the Whole")
entity_type: str = Field(..., example="organization")
organization: Optional[Organization] = Field(None, example=None)
person: Optional[CompactPerson]

class Config:
orm_mode = True
Expand All @@ -280,12 +282,6 @@ class Config:
class BillDocumentLink(BaseModel):
url: str = Field(..., example="https://example.com/doc.pdf")
media_type: str = Field(..., example="application/pdf")
organization_id: str = Field(
..., example="ocd-organization/fce467b7-470b-41c2-be23-0ed00804b512"
)
person_id: str = Field(
..., example="ocd-person/5a327e3b-ae91-4279-ae17-9214aad32fa9"
)

class Config:
orm_mode = True
Expand Down

0 comments on commit 094c2f9

Please sign in to comment.