{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-validated-method-configuration-schema.json",
  "title": "ValidatedMethodConfiguration",
  "description": "Information about the validity of a method configuration's expressions relative to the method itself",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-method-configurations-api-openapi.yml#/components/schemas/ValidatedMethodConfiguration",
  "required": [
    "extraInputs",
    "invalidInputs",
    "invalidOutputs",
    "methodConfiguration",
    "missingInputs",
    "validInputs",
    "validOutputs"
  ],
  "type": "object",
  "properties": {
    "validInputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "invalidInputs": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "missingInputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "extraInputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "validOutputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "invalidOutputs": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "methodConfiguration": {
      "$ref": "#/$defs/MethodConfiguration"
    }
  },
  "$defs": {
    "MethodConfiguration": {
      "required": [
        "inputs",
        "methodRepoMethod",
        "name",
        "namespace"
      ],
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string",
          "description": "This method configuration's namespace"
        },
        "name": {
          "type": "string",
          "description": "The name of the method configuration"
        },
        "rootEntityType": {
          "type": "string",
          "description": "The root entity type that the method will be running on. Optional if this method config doesn't run on an entity (i.e. uses only workspace attributes and literal inputs)."
        },
        "prerequisites": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Map[String, String]"
        },
        "inputs": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Map[String, String]"
        },
        "outputs": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Map[String, String]"
        },
        "methodRepoMethod": {
          "$ref": "#/$defs/MethodRepoMethod"
        },
        "methodConfigVersion": {
          "type": "integer",
          "description": "Version number, incremented on edit",
          "format": "int32"
        },
        "deleted": {
          "type": "boolean",
          "description": "Is this config marked as deleted?"
        },
        "dataReferenceName": {
          "type": "string",
          "description": "the name of the data reference within this workspace to be used to derive input values"
        }
      },
      "description": ""
    },
    "MethodRepoMethod": {
      "required": [
        "methodName",
        "methodNamespace",
        "methodVersion"
      ],
      "type": "object",
      "properties": {
        "methodNamespace": {
          "type": "string",
          "description": "The namespace of the method in Agora"
        },
        "methodName": {
          "type": "string",
          "description": "The name of the method in Agora"
        },
        "methodVersion": {
          "type": "integer",
          "description": "The integer method version in Agora (or a string method version for Dockstore)",
          "format": "int32"
        },
        "methodPath": {
          "type": "string",
          "description": "The path of the method in Dockstore"
        },
        "sourceRepo": {
          "type": "string",
          "description": "The method's repository, currently one of \"agora\" or \"dockstore\""
        },
        "methodUri": {
          "type": "string",
          "description": "URI that specifies the method's repository and captures all the information necessary to identify the method within its repository (e.g. agora://namespace/name/1, dockstore://path/version)"
        }
      },
      "description": ""
    }
  }
}