Skip to content

Commit

Permalink
Remove recipient field from report schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin5605 committed Oct 13, 2024
1 parent 00b5d14 commit a0496bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/mainframe/models/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class PackageSpecifier(BaseModel):


class ReportPackageBody(PackageSpecifier):
recipient: Optional[str]
inspector_url: Optional[str]
additional_information: Optional[str]

Expand Down
3 changes: 0 additions & 3 deletions tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def test_report(
body = ReportPackageBody(
name="c",
version="1.0.0",
recipient=None,
inspector_url=None,
additional_information="this package is bad",
)
Expand Down Expand Up @@ -155,7 +154,6 @@ def test_report_inspector_url(body_url: Optional[str], scan_url: Optional[str]):
ReportPackageBody(
name="c",
version="1.0.0",
recipient=None,
inspector_url="inspector url override",
additional_information=None,
),
Expand Down Expand Up @@ -183,7 +181,6 @@ def test_report_inspector_url(body_url: Optional[str], scan_url: Optional[str]):
ReportPackageBody(
name="c",
version="1.0.0",
recipient=None,
inspector_url="inspector url override",
additional_information=None,
),
Expand Down

0 comments on commit a0496bf

Please sign in to comment.