Skip to content

Commit

Permalink
Merge pull request #78 from kucc/hotfix/missing-type
Browse files Browse the repository at this point in the history
Hotfix/missing type
  • Loading branch information
smreosms13 authored Nov 19, 2024
2 parents 196a03b + 265490e commit c64620b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"ruff.lint.ignore": [
"B008",
"E712",
"UP007",
"UP017"
],
"editor.defaultFormatter": null
Expand Down
4 changes: 2 additions & 2 deletions src/domain/schemas/book_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class DomainResAdminPostBook(BaseModel):
version: Optional[str] = Field(title="version", description="판본", default=None)
major: bool = Field(title="major", description="전공 책 여부", default=False)
language: str = Field(title="language", description="언어", default="KOREAN")
book_status = Field(title="book_status", description="도서 상태", default=True)
book_status : bool = Field(title="book_status", description="도서 상태", default=True)
donor_name: Optional[str] = Field(title="donor_name", description="기부자명", default=None)
created_at: datetime = Field(title="create_at", description="생성일시", example=datetime.now())
updated_at: datetime = Field(title="update_at", description="수정일시", example=datetime.now())
Expand Down Expand Up @@ -95,7 +95,7 @@ class DomainResAdminPutBook(BaseModel):
version: Optional[str] = Field(title="version", description="판본", default=None)
major: bool = Field(title="major", description="전공 책 여부", default=False)
language: str = Field(title="language", description="언어", default="KOREAN")
book_status = Field(title="book_status", description="도서 상태", default=True)
book_status : bool = Field(title="book_status", description="도서 상태", default=True)
donor_name: Optional[str] = Field(title="donor_name", description="기부자명", default=None)
created_at: datetime = Field(title="create_at", description="생성일시", example=datetime.now())
updated_at: datetime = Field(title="update_at", description="수정일시", example=datetime.now())
2 changes: 1 addition & 1 deletion src/routes/admin/response/book_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RouteResAdminPostBook(BaseModel):
version: Optional[str] = Field(title="version", description="판본", default=None)
major: bool = Field(title="major", description="전공 책 여부", default=False)
language: str = Field(title="language", description="언어", default="KOREAN")
book_status = Field(title="book_status", description="도서 상태", default=True)
book_status : bool = Field(title="book_status", description="도서 상태", default=True)
donor_name: Optional[str] = Field(title="donor_name", description="기부자명", default=None)
created_at: datetime = Field(title="create_at", description="생성일시", example=datetime.now())
updated_at: datetime = Field(title="update_at", description="수정일시", example=datetime.now())

0 comments on commit c64620b

Please sign in to comment.