{
  "id": "tradle.APIBasedVerificationMethod",
  "type": "tradle.Model",
  "title": "API based verification",
  "subClassOf": "tradle.Method",
  "properties": {
    "api": {
      "type": "object",
      "ref": "tradle.API",
      "inlined": true
    },
    "reference": {
      "skipLabel": true,
      "type": "array",
      "items": {
        "properties": {
          "queryId": {
            "type": "string"
          }
        }
      }
    },
    "title": {
      "type": "string",
      "readOnly": true,
      "displayName": true,
      "displayAs": "based on {1} checked by {2} automatically (via API)",
      "group": [
        "aspect",
        "api"
      ]
    },
    "confidence": {
      "type": "number",
      "min": "0",
      "max": "1"
    },
    "aspect": {
      "type": "string"
    },
    "rawData": {
      "type": "object",
      "skipLabel": true,
      "title": "Raw data",
      "range": "json",
      "readOnly": true
    }
  },
  "required": [
    "aspect",
    "api",
    "reference"
  ],
  "viewCols": [
    "aspect",
    "api",
    "reference",
    "confidence",
    "rawData"
  ]
}