{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-synapse-analytics/json-schema/microsoft-azure-synapse-analytics-sy-msapiddlresponse-schema.json",
  "title": "SyMSAPIDDLResponse",
  "description": "Defines the response for create/publish operation on DDL payload.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-synapse-analytics-databases-api-openapi.yml#/components/schemas/SyMSAPIDDLResponse",
  "type": "object",
  "properties": {
    "ddlType": {
      "$ref": "#/$defs/DDLType"
    },
    "entityName": {
      "description": "Entity name.",
      "type": "string"
    },
    "entityType": {
      "$ref": "#/$defs/ArtifactType"
    },
    "publishStatus": {
      "$ref": "#/$defs/PublishStatus"
    },
    "originObjectId": {
      "description": "Object id maintained by Origin Catalog.",
      "type": "string"
    },
    "objectId": {
      "description": "Object id maintained by SyMS.",
      "type": "string"
    },
    "objectVersion": {
      "description": "Object version maintained by SyMS.",
      "type": "integer",
      "format": "int64"
    }
  },
  "required": [
    "ddlType",
    "entityName",
    "entityType",
    "publishStatus",
    "originObjectId",
    "objectId",
    "objectVersion"
  ],
  "$defs": {
    "ArtifactType": {
      "description": "Artifact type.",
      "type": "string",
      "enum": [
        "DATABASE",
        "TABLE",
        "SCHEMA",
        "VIEW",
        "FUNCTION",
        "PARTITIONINFO",
        "RELATIONSHIP"
      ],
      "x-ms-enum": {
        "name": "SASEntityType",
        "modelAsString": false
      }
    },
    "DDLType": {
      "description": "DDL type.",
      "type": "string",
      "enum": [
        "CREATE",
        "ALTER",
        "DROP"
      ],
      "x-ms-enum": {
        "name": "DDLType",
        "modelAsString": false
      }
    },
    "PublishStatus": {
      "description": "Publish status.",
      "type": "string",
      "enum": [
        "PUBLISHED"
      ],
      "x-ms-enum": {
        "name": "PublishStatus",
        "modelAsString": false
      }
    }
  }
}