{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/craft-io/main/json-schema/craft-io-portfolio-schema.json",
  "title": "Portfolio",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "nullable": true
    },
    "workspaces": {
      "items": {
        "$ref": "#/components/schemas/Workspace"
      },
      "type": "array"
    },
    "webUrl": {
      "type": "string",
      "description": "Canonical Craft.io app URL for this portfolio. Computed in PublishService."
    }
  },
  "required": [
    "workspaces"
  ],
  "type": "object",
  "additionalProperties": false
}