Skip to content

Commit

Permalink
updated FileRegistInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
xncbf committed Jul 10, 2022
1 parent 271f151 commit 315c153
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rcs-pydantic"
version = "0.4.2"
version = "0.4.3"
description = ""
authors = ["xncbf <[email protected]>"]
keywords = ["pydantic", "rcs", "fastapi"]
Expand Down
4 changes: 2 additions & 2 deletions rcs_pydantic/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,12 @@ class TokenInfo(BaseModel):


class FileRegistInfo(BaseModel):
fileId: Optional[str]
fileId: str
usageType: enums.FileUsageTypeEnum
usageService: enums.FileUsageServiceEnum
mimeType: str
file: bytes
description: str
description: Optional[str]


class FileInfo(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions tests/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ class Meta:


class FileRegistInfoFactory(factory.Factory):
fileId: str = factory.Faker("uuid4")
usageType: str = factory.LazyAttribute(lambda n: fake.random_element(elements=enums.FileUsageTypeEnum))
usageService: str = factory.LazyAttribute(lambda n: fake.random_element(elements=enums.FileUsageServiceEnum))
mimeType: str = fake.mime_type(category="image")
Expand Down

0 comments on commit 315c153

Please sign in to comment.