From c62924ff498ddcbe4381d3fcb3c72103c07483ef Mon Sep 17 00:00:00 2001 From: Davide Date: Wed, 19 Jun 2024 17:54:58 +0200 Subject: [PATCH] IFS04.1/5.1 aggiunta campo degree_course_code + fix swagger + modifica json --- doc/03_analysis/io_schema/IFS04.1-request.json | 1 + doc/03_analysis/io_schema/IFS05.1-request.json | 1 + src/IFS04-rettifica-iscrizioni.yaml | 16 +++++++++++++--- src/IFS05-rettifica-titoli.yaml | 13 +++++++++++-- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/doc/03_analysis/io_schema/IFS04.1-request.json b/doc/03_analysis/io_schema/IFS04.1-request.json index 5fd9d72..552208e 100644 --- a/doc/03_analysis/io_schema/IFS04.1-request.json +++ b/doc/03_analysis/io_schema/IFS04.1-request.json @@ -1,6 +1,7 @@ { "tax_code": "RSSMRA80A01F205D", "person_id":"12345678A", + "degree_course_code": "1573960", "reason": "Modifica iscrizione xxx", "attributes": [ { diff --git a/doc/03_analysis/io_schema/IFS05.1-request.json b/doc/03_analysis/io_schema/IFS05.1-request.json index bef97d9..011ad43 100644 --- a/doc/03_analysis/io_schema/IFS05.1-request.json +++ b/doc/03_analysis/io_schema/IFS05.1-request.json @@ -1,6 +1,7 @@ { "tax_code": "RSSMRA80A01F205D", "person_id":"", + "degree_course_code": "1573960", "reason": "Modifica iscrizione xxx", "attributes": [ { diff --git a/src/IFS04-rettifica-iscrizioni.yaml b/src/IFS04-rettifica-iscrizioni.yaml index de75299..d12007a 100644 --- a/src/IFS04-rettifica-iscrizioni.yaml +++ b/src/IFS04-rettifica-iscrizioni.yaml @@ -58,6 +58,7 @@ paths: value: tax_code: RSSMRA80A01F205D person_id: 12345678A + degree_course_code: '1573960' reason: Modifica iscrizione xxx attributes: - attribute_name: institute_Name @@ -345,6 +346,11 @@ components: pattern: "^[A-Z0-9]{9}$" example: AB123456C nullable: true + degree_course_code: + type: string + description: Course code / Codice del corso + minLength: 1 + maxLength: 20 reason: type: string description: change request description / Descrizione della richiesta di rettifica @@ -398,7 +404,11 @@ components: personal_data: $ref: '#/components/schemas/personal_data' enrollments: - $ref: '#/components/schemas/enrollments' + type: array + minItems: 0 + description: List of enrollments for student / Elenco iscrizioni di una studentessa o di uno studente + items: + $ref: '#/components/schemas/enrollments' personal_data: type: object nullable: true @@ -461,7 +471,7 @@ components: items: $ref: '#/components/schemas/issue' enrollments: - type: array + type: object additionalProperties: false description: Detailed enrollment information / Informazioni dettagliate sull'iscrizione properties: @@ -474,7 +484,7 @@ components: nullable: true institute_name: type: string - description: Institute's name / Denominazione dell’istituto + description: Institute's name / Denominazione dell'istituto example: 'Milano - Politecnico' minLength: 1 maxLength: 2048 diff --git a/src/IFS05-rettifica-titoli.yaml b/src/IFS05-rettifica-titoli.yaml index 9fa5b21..95db3f0 100644 --- a/src/IFS05-rettifica-titoli.yaml +++ b/src/IFS05-rettifica-titoli.yaml @@ -60,6 +60,7 @@ paths: value: tax_code: RSSMRA80A01F205D person_id: 12345678A + degree_course_code: '1573960' reason: Modifica iscrizione xxx attributes: - attribute_name: institute_Name @@ -387,6 +388,11 @@ components: pattern: "^[A-Z0-9]{9}$" example: AB123456C nullable: true + degree_course_code: + type: string + description: Course code / Codice del corso + minLength: 1 + maxLength: 20 reason: type: string description: change request description / Descrizione richiesta di rettifica @@ -574,7 +580,10 @@ components: personal_data: $ref: '#/components/schemas/personal_data' qualifications: - $ref: '#/components/schemas/qualifications' + type: array + minItems: 0 + items: + $ref: '#/components/schemas/qualifications' personal_data: type: object nullable: true @@ -637,7 +646,7 @@ components: items: $ref: '#/components/schemas/issue' qualifications: - type: array + type: object additionalProperties: false description: Degree detail / Dettaglio titolo properties: