chemical_formula_anonymous
validator accepts incorrect proportion order if started with 1
#1002
Labels
bug
Something isn't working
models
For issues related to the pydantic models directly
priority/medium
Issue or PR with a consensus of medium priority
validator
Related to the OPTIMADE validator
As reported by @JPBergsma in #1001 (comment), the
chemical_formula_anonymous
validator has an edge case that allows the wrong order of elements for certain compositions (those with only two different proportions, e.g. 1 and 4), if the first element has proportion 1, e.g."AB4"
does not raise an error as it should.The text was updated successfully, but these errors were encountered: