{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/buf.work.json",
  "$comment": "https://buf.build/docs/configuration/v1/buf-work-yaml",
  "title": "buf.work.yaml",
  "description": "buf.work.yaml is used to define a workspace, which is an advanced local development feature. Workspaces make it possible to consolidate one or more modules into a single buildable unit. They also allow users to run buf operations across multiple modules with a single execution (such as buf lint).",
  "type": "object",
  "properties": {
    "version": {
      "description": "Required. Defines the current configuration version. The only accepted value is v1.",
      "type": "string",
      "const": "v1"
    },
    "directories": {
      "description": "Required. Lists the directories that define modules to be included in the workspace. The directory paths must be relative to the buf.work.yaml, and can't point to a location outside of the directory where your buf.work.yaml is.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": ["version", "directories"]
}
