{
  "type": "object",
  "properties": {
    "pgroups": {
      "description": "List of processor groups",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "User-defined name of processor group"
          },
          "preprocessor": {
            "description": "Defines preprocessor passes for the open code.",
            "anyOf": [
              {
                "$ref": "preprocessor_entry.schema.json"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "preprocessor_entry.schema.json"
                }
              }
            ]
          },
          "libs": { "$ref": "libs_config.schema.json" },
          "copybook-extensions": {
            "type": "array",
            "description": "List of possible copybook file extensions.",
            "items": {
              "type": "string"
            }
          },
          "copybook-file-encoding": {
            "type": "string",
            "description": "Copybook file encoding."
          },
          "compiler-options": {
            "$ref": "compiler_options.schema.json"
          }
        }
      },
      "required": ["name", "libs"]
    }
  },
  "required": ["pgroups"]
}
