{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DiscoverInput",
  "title": "DiscoverInput",
  "type": "object",
  "required": [
    "context",
    "target"
  ],
  "properties": {
    "target": {
      "$ref": "#/components/schemas/VectorInput"
    },
    "context": {
      "description": "Search space will be constrained by these pairs of vectors",
      "anyOf": [
        {
          "$ref": "#/components/schemas/ContextPair"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ContextPair"
          }
        },
        {
          "nullable": true
        }
      ]
    }
  }
}