{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-rest-api-response-of-interface-spec-detail-schema.json",
  "title": "RestApiResponseOfInterfaceSpecDetail",
  "description": "Standard REST API response envelope for a single resource.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-interface-specs-api-openapi.yml#/components/schemas/RestApiResponseOfInterfaceSpecDetail",
  "required": [
    "data"
  ],
  "type": "object",
  "properties": {
    "data": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/InterfaceSpecDetail"
        }
      ]
    }
  },
  "$defs": {
    "InterfaceSpecDetail": {
      "required": [
        "id",
        "interfaceId",
        "sourceUrl",
        "format",
        "rawContent",
        "importedAt",
        "importError",
        "organizationId",
        "createdAt",
        "updatedAt"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "interfaceId": {
          "type": "string",
          "format": "uuid"
        },
        "sourceUrl": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "rawContent": {
          "type": "string"
        },
        "importedAt": {
          "type": "string",
          "format": "date-time"
        },
        "importError": {
          "type": [
            "null",
            "string"
          ]
        },
        "organizationId": {
          "type": "string",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "Interface spec detail view."
    }
  }
}