cidgoh / DataHarmonizer

A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
MIT License
91 stars 23 forks source link

LinkML scheme should have min/max values as integers rather than string representation of integers #437

Open ddooley opened 2 weeks ago

ddooley commented 2 weeks ago

linkml-validate code fails right now if schema has "1234" string numbers, rather than 1234 numbers directly, i.e. a DH schema with

minimum_value: "0"
maximum_value: "130"

whereas this succeeds:

minimum_value: 0
maximum_value: 130

So a small fix to DH tabular_to_schema.py achieves this.

ddooley commented 2 weeks ago

However, currently numeric fields are being saved as strings. For validation to work, we have to ensure numeric values are saved as unquoted values.