{
  "id": "client-side-assembly-manifest.schema.json",
  "title": "Client-side assembly manifest",
  "description": "A client-side assembly is a standalone-executable bundle containing a component, the loader, and all of their dependencies.",

  "type": "object",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "$schema": {
          "type": "string",
          "minLength": 1
        },

        "manifestVersion": { "$ref": "any-value.schema.json" },
        "id": { "$ref": "any-value.schema.json" },
        "alias": { "$ref": "any-value.schema.json" },
        "version": { "$ref": "any-value.schema.json" },
        "loaderConfig": { "$ref": "any-value.schema.json" },
        "componentType": { "$ref": "any-value.schema.json" },
        "rootComponentId": { "$ref": "any-value.schema.json" }
      },
      "additionalProperties": false
    },
    {
      "$ref": "client-side-component-manifest.schema.json#/definitions/clientSideComponentManifest"
    },
    {
      "type": "object",
      "required": ["componentType", "rootComponentId"],
      "properties": {
        "componentType": {
          "type": "string",
          "enum": ["Library"]
        },

        "rootComponentId": {
          "$ref": "guid.schema.json",
          "title": "ID",
          "description": "The ID of the component from which the assembly is built."
        }
      },

      "additionalProperties": true
    }
  ]
}
