{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/archstone-dev/json-schema/archstone-dev-public-listing-schema.json",
  "title": "PublicListing",
  "description": "The public field allow-list for a listed hosted endpoint (AC-7). `capabilities` is always the LIVE published capability list, never the last-approved snapshot — a re-review in progress (an escalation) is visible only as its effect on this array, never as a status field. No tenant id, deployment id, requested_* field, decision reason, timestamp, or escalation field is ever present.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/archstone-dev-openapi.yaml#/components/schemas/PublicListing",
  "type": "object",
  "required": [
    "slug",
    "displayName",
    "description",
    "website",
    "logoRef",
    "accessMode",
    "capabilities"
  ],
  "additionalProperties": false,
  "properties": {
    "slug": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoRef": {
      "type": [
        "string",
        "null"
      ],
      "description": "A `data:` URI (base64), or null when the listing carries no logo."
    },
    "accessMode": {
      "type": "string",
      "enum": [
        "public",
        "oauth"
      ]
    },
    "capabilities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicListingCapability"
      }
    }
  },
  "$defs": {
    "PublicListingCapability": {
      "type": "object",
      "required": [
        "name",
        "effect"
      ],
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string"
        },
        "effect": {
          "type": "string"
        }
      }
    }
  }
}