microbiomedata / nmdc-runtime

Runtime system for NMDC data management and orchestration
https://microbiomedata.github.io/nmdc-runtime/
Other
4 stars 3 forks source link

Validation differs between `json:validate` and `json:submit` API endpoints #517

Open aclum opened 1 month ago

aclum commented 1 month ago

This record validates with json:validate but is rejected by json:submit, please make sure the validation is consistent. I believe this is a difference with how null values are handled differently b/w the two endpoints.

{"metagenome_annotation_activity_set":[{
  "id": "nmdc:wfmgan-11-9jarcs06.1",
  "name": "Metagenome Annotation Analysis Activity for nmdc:wfmgan-11-9jarcs06.1",
  "started_at_time": "2024-01-04T16:53:45.870871+00:00",
  "ended_at_time": "2024-01-11T00:32:49.042834+00:00",
  "was_informed_by": "nmdc:omprc-11-76ebsj44",
  "used": null,
  "execution_resource": "NERSC-Perlmutter",
  "git_url": "https://github.com/microbiomedata/mg_annotation",
  "has_input": [
    "nmdc:dobj-11-h1cam976"
  ],
  "has_output": [
    "nmdc:dobj-11-1r9da293",
    "nmdc:dobj-11-e0nrce17",
    "nmdc:dobj-11-mmqbd689",
    "nmdc:dobj-11-jnckd515",
    "nmdc:dobj-11-msgh9a88",
    "nmdc:dobj-11-s0frvd68",
    "nmdc:dobj-11-0s7jt531",
    "nmdc:dobj-11-kgtgzg77",
    "nmdc:dobj-11-905hms38",
    "nmdc:dobj-11-wsmjtk83",
    "nmdc:dobj-11-bwrfv784",
    "nmdc:dobj-11-3vkwqw36",
    "nmdc:dobj-11-4fn8pb67",
    "nmdc:dobj-11-m9an4690",
    "nmdc:dobj-11-nzddw909",
    "nmdc:dobj-11-t1hfyg64",
    "nmdc:dobj-11-0kezqk15",
    "nmdc:dobj-11-ttjrt485",
    "nmdc:dobj-11-5qdesm53",
    "nmdc:dobj-11-jrhd9h96",
    "nmdc:dobj-11-1a0rks54",
    "nmdc:dobj-11-xc87ry64",
    "nmdc:dobj-11-d5jhvn14"
  ],
  "type": "nmdc:MetagenomeAnnotationActivity",
  "part_of": [
    "nmdc:omprc-11-76ebsj44"
  ],
  "version": "v1.0.4",
  "gold_analysis_project_identifiers": []
}]