feat(): update resume contracts

This commit is contained in:
gitgernit
2025-11-22 17:30:46 +03:00
parent 995141a200
commit 2963460b1c
16 changed files with 847 additions and 64 deletions
+2 -6
View File
@@ -2,14 +2,13 @@ from decimal import Decimal
from dishka import FromDishka
from dishka.integrations.fastapi import DishkaRoute
from fastapi import APIRouter, status
from fastapi import APIRouter
from pydantic import BaseModel, Field
from template_project.application.resume.entity import ResumeId
from template_project.ml.interactors.predict_salary import (
PredictSalaryInteractor,
PredictSalaryRequest,
PredictSalaryResponse,
VacancyInput,
)
@@ -43,9 +42,7 @@ class PredictSalaryRequestModel(BaseModel):
key_skills: list[str] = Field(
min_length=1, description="List of key skills from resume", examples=[["Python", "FastAPI", "PostgreSQL"]]
)
vacancies: list[VacancyInputModel] = Field(
min_length=1, description="List of relevant vacancies", examples=[[]]
)
vacancies: list[VacancyInputModel] = Field(min_length=1, description="List of relevant vacancies", examples=[[]])
model_config = {
"json_schema_extra": {
@@ -120,4 +117,3 @@ async def predict_salary(
salary_to=response.salary_to,
recommended_skills=response.recommended_skills,
)