{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-app-view-schema.json",
  "title": "AppView",
  "description": "One app entry in `GET /v1/apps`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-apps-api-openapi.yml#/components/schemas/AppView",
  "type": "object",
  "required": [
    "slug",
    "tier",
    "min_plan",
    "availability",
    "installed",
    "name",
    "description",
    "category",
    "icon",
    "order"
  ],
  "properties": {
    "availability": {
      "type": "string",
      "description": "Availability for the caller's org: `available`, `not_activated`,\nor `plan_locked`."
    },
    "category": {
      "type": "string",
      "description": "Functional category (`finance`, `documents`, …)."
    },
    "description": {
      "type": "string",
      "description": "One-line description (FR)."
    },
    "icon": {
      "type": "string",
      "description": "Stable icon identifier the SPA maps to a component."
    },
    "installed": {
      "type": "boolean",
      "description": "Whether the app shows in the org's workspace (sidebar, dashboard).\nA core app stays usable when not installed."
    },
    "min_plan": {
      "type": "string",
      "description": "Minimum plan for an optional app (`starter`/`solo`/`studio`)."
    },
    "name": {
      "type": "string",
      "description": "Display name (FR)."
    },
    "order": {
      "type": "integer",
      "format": "int32",
      "description": "Sort order in the store and sidebar (lower first).",
      "minimum": 0
    },
    "slug": {
      "type": "string",
      "description": "App slug (`contacts`, `invoice`, …)."
    },
    "tier": {
      "type": "string",
      "description": "`core` (always on) or `optional` (opt-in)."
    }
  }
}