from pydantic import BaseModel, Schema
from models.author import Author
from utils.const import ISBN_DESCRIPTION


class Book(BaseModel):
    isbn: str = Schema(None, desscription=ISBN_DESCRIPTION)
    name: str
    author: Author
    year: int = Schema(None, gt=1900, lt=2100)

1031c513a1d76c158f3e61c125e38abd250c0956
<mask token>

<mask token>


class Book(BaseModel):
    isbn: str = Schema(None, desscription=ISBN_DESCRIPTION)
    name: str
    author: Author
    year: int = Schema(None, gt=1900, lt=2100)

from pydantic import BaseModel, Schema
from models.author import Author
from utils.const import ISBN_DESCRIPTION


class Book(BaseModel):
    isbn: str = Schema(None, desscription=ISBN_DESCRIPTION)
    name: str
    author: Author
    year: int = Schema(None, gt=1900, lt=2100)
