fix: expose api routes #5380
Annotations
2 errors and 1 warning
test:
shared/helpers/openapi/generateOpenapi.test.ts#L8
Error: Snapshot `generateOpenApiSchema > should generate proper schema 1` mismatched
- Expected
+ Received
@@ -3467,10 +3467,294 @@
"title": "La bonne alternance",
"version": "V1.0",
},
"openapi": "3.1.0",
"paths": {
+ "/application": {
+ "post": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": false,
+ "properties": {
+ "applicant_attachment_content": {
+ "description": "Le contenu du fichier du CV du candidat. La taille maximale autorisée est de 3 Mo.",
+ "maxLength": 4215276,
+ "type": "string",
+ },
+ "applicant_attachment_name": {
+ "description": "Nom du fichier du CV du candidat. Seuls les .docx et .pdf sont autorisés.",
+ "minLength": 1,
+ "pattern": "((.*?))(\.)+([Dd][Oo][Cc][Xx]|[Pp][Dd][Ff])$",
+ "type": "string",
+ },
+ "applicant_email": {
+ "description": "Email du candidat",
+ "format": "email",
+ "type": "string",
+ },
+ "applicant_first_name": {
+ "description": "Prenom du candidat",
+ "maxLength": 50,
+ "minLength": 1,
+ "type": "string",
+ },
+ "applicant_last_name": {
+ "description": "Nom du candidat",
+ "maxLength": 50,
+ "minLength": 1,
+ "type": "string",
+ },
+ "applicant_message": {
+ "description": "Un message du candidat vers le recruteur. Ce champ peut contenir la lettre de motivation du candidat.",
+ "type": [
+ "string",
+ "null",
+ ],
+ },
+ "applicant_phone": {
+ "description": "Téléphone du candidat",
+ "type": "string",
+ },
+ "caller": {
+ "description": "L'identification de la source d'émission de la candidature (pour widget et api)",
+ "type": [
+ "string",
+ "null",
+ ],
+ },
+ "job_searched_by_user": {
+ "description": "Métier recherché par le candidat",
+ "type": [
+ "string",
+ "null",
+ ],
+ },
+ "recipient_id": {
+ "description": "Identifiant unique de la ressource vers laquelle la candidature est faite, préfixé par le nom de la collection",
+ "type": "string",
+ },
+ },
+ "required": [
+ "applicant_first_name",
+ "applicant_last_name",
+ "applicant_email",
+ "applicant_phone",
+ "applicant_attachment_name",
+ "applicant_attachment_content",
+ "recipient_id",
+ ],
+ "type": "object",
+ },
+ },
+ },
+ "required": true,
+ },
+ "responses": {
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "id": {
+ "type": "string",
+ },
+ },
+ "required": [
+ "id",
+ ],
+ "type": "object",
+ },
+ },
+
|
test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading