- don't die if baserev does not exist
[opensuse:build-service.git] / docs / api / api / attribute.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
3   elementFormDefault="qualified">
4
5   <xs:annotation>
6     <xs:documentation>
7       This schema describes the system wide attribute definitions for the OBS.
8     </xs:documentation>
9   </xs:annotation>
10
11   <xs:element name="modifiable_by">
12     <xs:annotation>
13       <xs:documentation>
14         To specify access lists of a namespace or attribute. 
15       </xs:documentation>
16     </xs:annotation>
17     <xs:complexType>
18       <xs:attribute name="name" type="xs:string"/>
19       <xs:attribute name="group" type="xs:string"/>
20       <xs:attribute name="role" type="xs:string"/>
21     </xs:complexType>
22   </xs:element>
23
24   <xs:element name="default">
25     <xs:annotation>
26       <xs:documentation>
27         Default values of an attribute
28       </xs:documentation>
29     </xs:annotation>
30     <xs:complexType>
31       <xs:sequence>
32         <xs:element minOccurs="1" maxOccurs="unbounded" name="value" />
33       </xs:sequence>
34     </xs:complexType>
35   </xs:element>
36
37   <xs:element name="allowed">
38     <xs:annotation>
39       <xs:documentation>
40         Possible values of an attribute
41       </xs:documentation>
42     </xs:annotation>
43     <xs:complexType>
44       <xs:sequence>
45         <xs:element minOccurs="1" maxOccurs="unbounded" name="value" />
46       </xs:sequence>
47     </xs:complexType>
48   </xs:element>
49
50   <xs:element name="attribute">
51     <xs:annotation>
52       <xs:documentation>
53         A attribute defintion
54       </xs:documentation>
55     </xs:annotation>
56     <xs:complexType>
57       <xs:sequence>
58         <xs:element name="count" />
59         <xs:element minOccurs="0" maxOccurs="1" ref="default" />
60         <xs:element minOccurs="0" maxOccurs="1" ref="values" />
61         <xs:element minOccurs="0" maxOccurs="unbounded" ref="modifiable_by" />
62         <xs:element minOccurs="0" maxOccurs="unbounded" ref="not_modifiable_by" />
63       </xs:sequence>
64       <xs:attribute name="name" type="xs:string" />
65       <xs:attribute name="type" type="xs:string" />
66       <xs:attribute name="namespace" type="xs:string" />
67     </xs:complexType>
68   </xs:element>
69
70 </xs:schema>