Skip to content

Commit

Permalink
fix: patch job API job_start_date rule (#840)
Browse files Browse the repository at this point in the history
* fix: patch job API job_start_date rule

* fix: model api
  • Loading branch information
kevbarns authored Nov 21, 2023
1 parent a98fa01 commit cafb5a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 6 additions & 3 deletions shared/routes/v1Jobs.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down Expand Up @@ -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]),
Expand Down

0 comments on commit cafb5a2

Please sign in to comment.