BioSchemas / specifications

Issue tracker, technical wiki, and example markup
https://bioschemas.org
54 stars 52 forks source link

MolecularEntity.molecularWeight example invalid #592

Open sneumann opened 2 years ago

sneumann commented 2 years ago

Hi, the example "molecularWeight": 153.181 is invalid. https://github.com/BioSchemas/bioschemas.github.io/blob/aadc8b2bd62e00b4dfff57f43a855df5e25116b9/pages/_profiles/MolecularEntity/0.5-RELEASE.html#L383

The Validator ElixirTeSS/bioschemas-validator gives

For property:molecularWeight , 153.181 is not valid under any of the given schemas
We are expecting one of the following: string, "QuantitativeValue"

What is needed is either 1) A quoted string: "molecularWeight": "153.181" 2) A proper QuantitativeValue: molecularWeight: { value: 153.181 }

Both above pass the ElixirTeSS/bioschemas-validator. Yours, Steffen

AlasdairGray commented 1 year ago

Thanks @sneumann. I think in this case a string was expected.