Skip to content

Commit 31d6d98

Browse files
committed
Included format to relecov_schema
1 parent 6cad861 commit 31d6d98

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
Code contributions to the release:
1212

1313
- [Pablo Mata](https://github.com/shettland)
14+
- [Alejandro Bernabeu](https://github.com/aberdur)
1415

1516
### Modules
1617

1718
#### Added enhancements
1819

1920
- Added a more robust datatype handling in utils.py read_csv_file_return_dict() method [#379](https://github.com/BU-ISCIII/relecov-tools/pull/379)
21+
- Improved relecov template generator and version control [#382](https://github.com/BU-ISCIII/relecov-tools/pull/382)
2022

2123
#### Fixes
2224

relecov_tools/build_schema.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,11 @@ def build_new_schema(self, json_data, schema_draft):
312312
# List of properties to check in the features dictionary (it maps values between database features and json schema features):
313313
# key[db_feature_key]: value[schema_feature_key]
314314
features_to_check = {
315-
"type": "type",
316315
"enum": "enum",
317316
"examples": "examples",
318317
"ontology_id": "ontology",
318+
"type": "type",
319+
"format": "format",
319320
"description": "description",
320321
"classification": "classification",
321322
"label_name": "label",
@@ -357,7 +358,7 @@ def build_new_schema(self, json_data, schema_draft):
357358
f"[INFO] Feature {db_feature_key} is not present in database ({self.excel_file_path})"
358359
)
359360
continue
360-
# Record the required value for each property
361+
361362
if (
362363
"required" in db_feature_key
363364
or "required" == schema_feature_key

0 commit comments

Comments
 (0)