Indigo icon indicating copy to clipboard operation
Indigo copied to clipboard

Incorrect validation processing of a substance with a clear indication of the type.

Open digitalwert-devs opened this issue 2 years ago • 1 comments

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.

digitalwert-devs avatar Aug 19 '22 09:08 digitalwert-devs

We'll fix the issue in the future Indigo versions

even1024 avatar Sep 30 '22 06:09 even1024

{
  "data": {
    "type": "validation",
    "attributes": {
      "compound": {
        "structure": "",
        "format": "auto"
      },
      "validations": [
        "stereo3D"
      ]
    }
  }
}

The empty substance also passes validation, but it should not.

digitalroll avatar Oct 28 '22 15:10 digitalroll