/**
 * Auto-generated schema from XSD
 * 
 * DO NOT EDIT - Generated by ts-xsd codegen
 * Source: xsd/custom/discovery.xsd
 */

import atomExtended from './atomExtended';
import templatelinkExtended from './templatelinkExtended';

export default {
  $xmlns: {
    xsd: 'http://www.w3.org/2001/XMLSchema',
    app: 'http://www.w3.org/2007/app',
    atom: 'http://www.w3.org/2005/Atom',
    adtcomp: 'http://www.sap.com/adt/compatibility',
  },
  $imports: [
    atomExtended,
    templatelinkExtended,
  ],
  targetNamespace: 'http://www.w3.org/2007/app',
  elementFormDefault: 'qualified',
  element: [
    {
      name: 'service',
      type: 'app:ServiceType',
    },
  ],
  complexType: [
    {
      name: 'ServiceType',
      sequence: {
        element: [
          {
            name: 'workspace',
            type: 'app:WorkspaceType',
            minOccurs: '0',
            maxOccurs: 'unbounded',
          },
        ],
      },
    },
    {
      name: 'WorkspaceType',
      sequence: {
        element: [
          {
            ref: 'atom:title',
            minOccurs: '0',
          },
          {
            name: 'collection',
            type: 'app:CollectionType',
            minOccurs: '0',
            maxOccurs: 'unbounded',
          },
        ],
      },
    },
    {
      name: 'CollectionType',
      sequence: {
        element: [
          {
            ref: 'atom:title',
            minOccurs: '0',
          },
          {
            name: 'accept',
            type: 'xsd:string',
            minOccurs: '0',
            maxOccurs: 'unbounded',
          },
          {
            ref: 'atom:category',
            minOccurs: '0',
            maxOccurs: 'unbounded',
          },
          {
            ref: 'adtcomp:templateLinks',
            minOccurs: '0',
          },
        ],
      },
      attribute: [
        {
          name: 'href',
          type: 'xsd:anyURI',
          use: 'required',
        },
      ],
    },
  ],
} as const;
