gbif / gbif-api

GBIF API
Apache License 2.0
28 stars 5 forks source link

Refuse InPredicate with a `null` value #120

Closed MattBlissett closed 7 months ago

MattBlissett commented 7 months ago

A download InPredicate with a null value in the list should be rejected as invalid:

      {
        "type": "in",
        "key": "BASIS_OF_RECORD",
        "values": [
          "HUMAN_OBSERVATION",
          null,
          "MACHINE_OBSERVATION"
        ]
      },

Note existing (failed) downloads in the database need to be handled, e.g. removing the null or not validating in this case.