{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-csm-definition-schema.json",
  "title": "CsmDefinition",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-csm-api-openapi.yml#/components/schemas/CsmDefinition",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "definition": {
      "type": "object",
      "description": "Parsed CSM definition"
    },
    "json_schema_key": {
      "type": "string"
    },
    "service_type": {
      "type": "string"
    },
    "registered_by": {
      "type": "string"
    },
    "registered_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "semantic": {
      "$ref": "#/$defs/SemanticAnnotation"
    },
    "has_semantic": {
      "type": "boolean",
      "description": "Present in list responses — true if CSM has semantic annotations"
    }
  },
  "$defs": {
    "SemanticAnnotation": {
      "type": "object",
      "description": "A JSON-LD annotation. Every prefix it names must resolve: either declared in its own `@context`, or one this node carries by default (aimeat, schema, skos, dcterms, prov, rdfs, qudt, saref — see GET /v1/ns). A prefixed name whose prefix nobody defined is refused, since it expands to nothing in any JSON-LD processor. A BARE type (`\"@type\": \"LocalBusiness\"`) is always accepted: it resolves against the document's default vocabulary. Ontology-specific properties pass through untouched, and are checked the same way.",
      "properties": {
        "@context": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "@type": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}