Indigo
Indigo copied to clipboard
Incorrect validation processing of a substance with a clear indication of the type.
Steps to Reproduce
Request on /indigo/validate
{
"data": {
"type": "validation",
"attributes": {
"compound": {
"structure": "C(#N)C1C(Cl)=C(Cl)C(O)=C(C(O)=N)C=1Cl",
"format": "molfile"
},
"validations": [
"query"
]
}
}
}
Expected behavior Error due to format and query string mismatch (smiles vs molfile)
Actual behavior Validation is successful.
Indigo/Bingo version
1.7.0.0-geeba23428-x86_64-linux-gnu-11.2.1
Additional context Also the inchi format is handled incorrectly.
We'll fix the issue in the future Indigo versions
{
"data": {
"type": "validation",
"attributes": {
"compound": {
"structure": "",
"format": "auto"
},
"validations": [
"stereo3D"
]
}
}
}
The empty substance also passes validation, but it should not.