You've already forked RekomenciBackend
feat(): update resume contracts
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user