{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/mlos-config-mlos-jsonc-mlos-json5-mlos-json/_shared/latest--base-environment-subschema.json",
  "title": "mlos_bench Base Environment config schema",
  "description": "Config elements common to all Environments.",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/microsoft/MLOS/main/mlos_bench/mlos_bench/config/schemas/environments/base-environment-subschema.json",
    "sourceSha256": "0cd15d457aa82ea1e314e3b8a6653b7aea5b0b6f9c5bdd5f6ef9671c4c6442a2"
  },
  "type": "object",
  "properties": {
    "name": {
      "description": "Name of the Environment.",
      "type": "string"
    },
    "class": {
      "description": "Class of the Environment.",
      "type": "string",
      "$comment": "Exact matches are handled elsewhere.",
      "pattern": "^mlos_bench[.]environments[.]"
    },
    "include_services": {
      "description": "Path(s) to Service config files to include for the Environment.",
      "type": "array",
      "items": {
        "type": "string",
        "$comment": "Paths are expected to be json.",
        "pattern": "[.]json[c]?$"
      },
      "minItems": 1
    },
    "include_tunables": {
      "description": "Path(s) to TunableParams config files to include for the Environment.",
      "type": "array",
      "items": {
        "type": "string",
        "$comment": "Paths are expected to be json.",
        "pattern": "[.]json[c]?$"
      },
      "minItems": 1
    }
  },
  "$comment": "See notes regarding intentional lack of $schema property here.",
  "required": [
    "name",
    "class"
  ]
}
