diff --git a/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap b/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap index 2f5c150a32..ccf5588951 100644 --- a/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap +++ b/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap @@ -5173,10 +5173,7 @@ L'email est envoyé depuis l'adresse générique \\"Ne pas répondre\\" de La bo }, "job_start_date": { "description": "Date de début de l'alternance", - "type": [ - "string", - "null", - ], + "type": "string", }, "job_type": { "description": "Type de contrat", diff --git a/shared/routes/v1Jobs.routes.ts b/shared/routes/v1Jobs.routes.ts index 896b17e628..805927d0a9 100644 --- a/shared/routes/v1Jobs.routes.ts +++ b/shared/routes/v1Jobs.routes.ts @@ -371,11 +371,11 @@ export const zV1JobsRoutes = { job_level_label: true, job_duration: true, job_type: true, - is_disabled_elligible: true, job_count: true, job_rythm: true, job_employer_description: true, job_description: true, + is_disabled_elligible: true, custom_address: true, custom_geo_coordinates: true, }) @@ -551,12 +551,15 @@ export const zV1JobsRoutes = { is_disabled_elligible: true, job_count: true, job_rythm: true, - job_start_date: true, job_employer_description: true, job_description: true, custom_address: true, custom_geo_coordinates: true, - }).partial(), + }) + .extend({ + job_start_date: ZJobStartDateCreate(), + }) + .partial(), response: { "200": ZRecruiter, "400": z.union([ZResError, ZLbarError]),