From bc34c6ec0c4c54b6a440cf2ac1e55d0e7cf518cf Mon Sep 17 00:00:00 2001 From: Davide Date: Fri, 13 Sep 2024 16:26:05 +0200 Subject: [PATCH] issue #218 - Modified the scale of values assigned to the SDG --- .../io_schema/IFS03.4-response.json | 14 ++--- release-note.md | 2 +- src/IFS02-iscrizioni.yaml | 46 +++++++-------- src/IFS03-titoli.yaml | 56 ++++++++----------- src/IFS05-rettifica-titoli.yaml | 24 +++----- 5 files changed, 60 insertions(+), 82 deletions(-) diff --git a/doc/03_analysis/io_schema/IFS03.4-response.json b/doc/03_analysis/io_schema/IFS03.4-response.json index 9138ee2..1a20e0f 100644 --- a/doc/03_analysis/io_schema/IFS03.4-response.json +++ b/doc/03_analysis/io_schema/IFS03.4-response.json @@ -15,9 +15,9 @@ "degree_class_code":"MSLM32", "degree_class_name":"Ingegneria informatica", "degree_course_duration_in_months":36, - "qualification_grade_value":100, - "qualification_grading_scale_minimum_grade":66, - "qualification_grading_scale_maximum_grade":110, + "qualification_grade_value":"100", + "qualification_grading_scale_minimum_grade":"66", + "qualification_grading_scale_maximum_grade":"110", "qualification_date":"2022-07-01", "access_to_regulated_profession":"Non applicabile", "administering_institute_name":"Cagliari - Università degli studi", @@ -29,8 +29,8 @@ "attended_learnings":[ { "learning_grade_value": "28", - "learning_grading_scale_min": 18, - "learning_grading_scale_max": 30, + "learning_grading_scale_min": "18", + "learning_grading_scale_max": "30", "learning_name": "Esame 1", "learning_start_date": "2018-12-01", "learning_end_date": "2019-03-01", @@ -38,8 +38,8 @@ }, { "learning_grade_value": "22", - "learning_grading_scale_min": 18, - "learning_grading_scale_max": 30, + "learning_grading_scale_min": "18", + "learning_grading_scale_max": "30", "learning_name": "Esame 2", "learning_start_date": "2018-06-01", "learning_end_date": "2018-10-01", diff --git a/release-note.md b/release-note.md index a87498d..e3c2813 100644 --- a/release-note.md +++ b/release-note.md @@ -27,7 +27,7 @@ - [IFS01,IFS06,IFS07] 06.09.2024 fixed examples with the cursor - [IFS0X] 12.09.2024 issue #221 Removed min and max for enum types - [IFS0X] 12.09.2024 issue #220 Removed min and max for date types - +- [IFS0X] 13.09.2024 issue #218 Modified the scale of values assigned to the SDG cases by enabling the possibility of entering greading with 'letters' (Example: from A to D). ## Version 2.0.5 - [IFS01.2] It was added the curriculum description of the learnings list diff --git a/src/IFS02-iscrizioni.yaml b/src/IFS02-iscrizioni.yaml index dd795b3..816d36f 100644 --- a/src/IFS02-iscrizioni.yaml +++ b/src/IFS02-iscrizioni.yaml @@ -230,16 +230,16 @@ paths: - attended_learning_name: Esame 3 start_date: 2020-10-13 end_date: 2023-10-13 - grade_value: 30 - grading_scale_min: 18 - grading_scale_max: 30 + grade_value: '30' + grading_scale_min: '18' + grading_scale_max: '30' ects_credits_received: 6 - attended_learning_name: Esame 4 start_date: 2020-10-13 end_date: 2023-10-13 - grade_value: 30 - grading_scale_min: 18 - grading_scale_max: 30 + grade_value: '30' + grading_scale_min: '18' + grading_scale_max: '30' ects_credits_received: 6 - programme_type_code: MS programme_type_name: Laurea Magistrale (DM 270/04) @@ -253,16 +253,16 @@ paths: - attended_learning_name: Esame 1 start_date: 2020-10-13 end_date: 2023-10-13 - grade_value: 30 - grading_scale_min: 18 - grading_scale_max: 30 + grade_value: '30' + grading_scale_min: '18' + grading_scale_max: '30' ects_credits_received: 6 - attended_learning_name: Esame 2 start_date: 2020-10-13 end_date: 2023-10-13 - grade_value: 30 - grading_scale_min: 18 - grading_scale_max: 30 + grade_value: '30L' + grading_scale_min: '18' + grading_scale_max: '30' ects_credits_received: 6 '400': description: Bad Request - il server non può elaborare la richiesta del client a causa di una sintassi errata o di una richiesta non valida.
Esempi di cause @@ -691,26 +691,20 @@ components: grade_value: type: string description: Grade / Voto - example: '30' - minLength: 1 - maxLength: 64 - pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED)$ + example: '28' + pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED|[A-Z])$ nullable: true grading_scale_min: - type: number - format: float - minimum: 0 - maximum: 9999 + type: string description: Minimum course grade / Voto minimo del corso - example: 18 + example: '18' + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ nullable: true grading_scale_max: - type: number - format: float - minimum: 0 - maximum: 9999 + type: string description: Highest course grade / Voto massimo del corso - example: 30 + example: '30' + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ nullable: true ects_credits_received: type: integer diff --git a/src/IFS03-titoli.yaml b/src/IFS03-titoli.yaml index b70df50..ad073a5 100644 --- a/src/IFS03-titoli.yaml +++ b/src/IFS03-titoli.yaml @@ -180,8 +180,8 @@ paths: degree_class_name: Ingegneria informatica academic_qualification_date: 2022-07-01 qualification_grade_value: '110' - qualification_grading_scale_minimum_grade: 66 - qualification_grading_scale_maximum_grade: 110 + qualification_grading_scale_minimum_grade: '66' + qualification_grading_scale_maximum_grade: '110' academic_qualification_country: Italia '400': description: Bad Request - il server non può elaborare la richiesta del client a causa di una sintassi errata o di una richiesta non valida.
Esempi di cause @@ -329,15 +329,15 @@ paths: nqf_level: I ciclo QF-XXX attended_learnings: - learning_grade_value: '28' - learning_grading_scale_min: 18 - learning_grading_scale_max: 30 + learning_grading_scale_min: '18' + learning_grading_scale_max: '30' learning_name: Analisi matematica I e Geometria learning_start_date: '2018-12-01' learning_end_date: '2019-03-01' learning_cfu: '6' - learning_grade_value: '22' - learning_grading_scale_min: 18 - learning_grading_scale_max: 30 + learning_grading_scale_min: '18' + learning_grading_scale_max: '30' learning_name: Fisica sperimentale learning_start_date: '2018-06-01' learning_end_date: '2018-10-01' @@ -497,7 +497,7 @@ components: minimum: 0 maximum: 9999 example: 66 - description: Minimum course grade / Voto minimo del corso + description: Minimum course grade / Voto minimo del corso nullable: true qualification_grading_scale_maximum_grade: type: number @@ -506,7 +506,7 @@ components: maximum: 9999 nullable: true example: 110 - description: Highest course grade / Voto massimo del corso + description: Highest course grade / Voto massimo del corso required: - institute_code - programme_type_code @@ -609,23 +609,19 @@ components: minLength: 1 maxLength: 32 example: '110' - pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED)$ + pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED|[A-Z])$ nullable: true qualification_grading_scale_minimum_grade: - type: number - format: float - minimum: 0 - maximum: 9999 - example: 66 - description: Minimum course grade / Voto minimo del corso + type: string + example: '66' + description: Minimum course grade / Voto minimo del corso + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ nullable: true qualification_grading_scale_maximum_grade: - type: number - format: float - minimum: 0 - maximum: 9999 - example: 110 + type: string + example: '110' description: Highest course grade / Voto massimo del corso + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ nullable: true academic_qualification_country: type: string @@ -929,25 +925,19 @@ components: type: string description: Exam vote / Voto d'esame example: '30' - minLength: 1 - maxLength: 2048 - pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED)$ + pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED|[A-Z])$ nullable: true learning_grading_scale_min: - type: number - format: float - minimum: 0 - maximum: 9999 + type: string description: minimun Exam vote / Voto d'esame minimo - example: 18 + example: '18' + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ nullable: true learning_grading_scale_max: - type: number - format: float - minimum: 0 - maximum: 9999 + type: string description: Exam vote / Voto d'esame massimo - example: 30 + example: '30' + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ nullable: true learning_name: type: string diff --git a/src/IFS05-rettifica-titoli.yaml b/src/IFS05-rettifica-titoli.yaml index 05ccfe7..29f886d 100644 --- a/src/IFS05-rettifica-titoli.yaml +++ b/src/IFS05-rettifica-titoli.yaml @@ -270,8 +270,8 @@ paths: degree_class_code: MSLM32 academic_qualification_date: 2022-07-01 qualification_grade_value: '110' - qualification_grading_scale_minimum_grade: 66 - qualification_grading_scale_maximum_grade: 110 + qualification_grading_scale_minimum_grade: '66' + qualification_grading_scale_maximum_grade: '110' issues: - attribute_name: degree_course_code issue_description: degree course code didn't find on the controlled vocabulary @@ -715,27 +715,21 @@ components: qualification_grade_value: type: string description: Grade obtained upon graduation / Voto ottenuto al conseguimento del titolo di studio - minLength: 1 - maxLength: 32 example: '110' - pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED)$ + pattern: ^(\d+(.\d{1,2})?|\d+L|QUALIFIED|[A-Z])$ nullable: true qualification_grading_scale_minimum_grade: - type: number - format: float - minimum: 0 - maximum: 9999 + type: string nullable: true - example: 66 + example: '66' description: Minimum course grade / Voto minimo del corso + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ qualification_grading_scale_maximum_grade: - type: number - format: float - minimum: 0 - maximum: 9999 + type: string nullable: true - example: 110 + example: '110' description: Highest course grade / Voto massimo del corso + pattern: ^(\d+(.\d{1,2})?|[A-Z])$ issues: additionalProperties: false type: array