Skip to content

Commit

Permalink
Merge pull request #276 from vipyrsec/revert-br/gh166
Browse files Browse the repository at this point in the history
Revert "Update deprecated Pydantic config"
  • Loading branch information
jonathan-d-zhang authored Jul 8, 2024
2 parents ca67730 + 199cb28 commit fcb5b50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mainframe/models/schemas.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import Enum
from typing import Any, Optional

from pydantic import BaseModel, ConfigDict, Field
from pydantic import BaseModel, Field


class ServerMetadata(BaseModel):
Expand All @@ -25,11 +25,12 @@ class PackageSpecifier(BaseModel):
version: A str of the package version to scan.
"""

model_config = ConfigDict(frozen=True)

name: str
version: str

class Config:
frozen = True


class ReportPackageBody(PackageSpecifier):
recipient: Optional[str]
Expand Down

0 comments on commit fcb5b50

Please sign in to comment.