{
  "$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-msapiddlresponses-schema.json",
  "title": "SyMSAPIDDLResponses",
  "description": "Defines the publish response.",
  "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/SyMSAPIDDLResponses",
  "type": "object",
  "properties": {
    "syMsApiDdlResponse": {
      "description": "List of DDL response.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SyMSAPIDDLResponse"
      }
    }
  },
  "required": [
    "syMsApiDdlResponse"
  ],
  "$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
      }
    },
    "SyMSAPIDDLResponse": {
      "description": "Defines the response for create/publish operation on DDL payload.",
      "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"
      ]
    }
  }
}