CIMAC-CIDC/cidc-schemas

View on GitHub
cidc_schemas/schemas/artifacts/artifact_elisa_xlsx.json

Summary

Maintainability
Test Coverage
{
  "$schema": "metaschema/strict_meta_schema.json#",
  "$id": "artifact_elisa_xlsx",
  "title": "ELISA results artifact",
  "type": "object",
  "description": "Information about an ELISA file.",
  "$comment": "TODO Maybe add array of antibodies parsing.",
  "additionalProperties": false,
  "properties": {
    "number_of_samples": {
      "description": "Number of samples within this file.",
      "type": "integer"
    },
    "samples": {
      "description": "Ids of the sample(s) within this file.",
      "type": "array",
      "items": {
        "$comment": "Ids of the sample(s) within this file.",
        "$ref": "sample.json#properties/cimac_id"
      }
    },
    "data_format": {
      "description": "Data format.",
      "const": "ELISA"
    },
    "upload_placeholder": {
      "$ref": "artifacts/artifact_core.json#properties/upload_placeholder"
    },
    "artifact_creator": {
      "$ref": "artifacts/artifact_core.json#properties/artifact_creator"
    },
    "uploader": { "$ref": "artifacts/artifact_core.json#properties/uploader" },
    "uuid": { "$ref": "artifacts/artifact_core.json#properties/uuid" },
    "file_name": {
      "$ref": "artifacts/artifact_core.json#properties/file_name"
    },
    "object_url": {
      "$ref": "artifacts/artifact_core.json#properties/object_url"
    },
    "uploaded_timestamp": {
      "$ref": "artifacts/artifact_core.json#properties/uploaded_timestamp"
    },
    "file_size_bytes": {
      "$ref": "artifacts/artifact_core.json#properties/file_size_bytes"
    },
    "md5_hash": { "$ref": "artifacts/artifact_core.json#properties/md5_hash" },
    "crc32c_hash": {
      "$ref": "artifacts/artifact_core.json#properties/crc32c_hash"
    },
    "visible": { "$ref": "artifacts/artifact_core.json#properties/visible" },
    "artifact_category": {
      "$ref": "artifacts/artifact_core.json#properties/artifact_category"
    },
    "facet_group": {
      "$ref": "artifacts/artifact_core.json#properties/facet_group"
    }
  },
  "allOf": [
    {
      "$ref": "artifacts/artifact_core.json"
    }
  ],
  "mergeStrategy": "objectMerge",
  "anyOf": [
    { "required": ["number_of_samples", "samples"] },
    { "required": ["upload_placeholder"] }
  ]
}