/usr/share/obs/docs/api/channel.rng is in obs-api 2.7.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | <?xml version="1.0" encoding="UTF-8"?>
<grammar ns="http://buildservice.org/api" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<include href="obs.rng" />
<start>
<ref name="channel-element"/>
</start>
<define ns="" name="channel-element">
<element name="channel">
<zeroOrMore>
<ref name="channel-product-element"/>
</zeroOrMore>
<zeroOrMore>
<ref name="channel-target-element"/>
</zeroOrMore>
<oneOrMore>
<ref name="channel-binaries-element"/>
</oneOrMore>
</element>
</define>
<define ns="" name="channel-product-element">
<element ns="" name="product">
<attribute name="project"/>
<attribute name="name"/>
<empty/>
</element>
</define>
<define ns="" name="channel-target-element">
<element ns="" name="target">
<attribute name="project"/>
<attribute name="repository"/>
<optional>
<attribute name="id_template"/>
</optional>
<optional>
<attribute name="requires_issue"/>
</optional>
<optional>
<element ns="" name="disabled">
<empty/>
</element>
</optional>
</element>
</define>
<define ns="" name="channel-binaries-element">
<element ns="" name="binaries">
<optional>
<attribute name="project"/>
</optional>
<optional>
<attribute name="repository"/>
</optional>
<optional>
<attribute name="arch">
<ref name="build-arch" />
</attribute>
</optional>
<oneOrMore>
<ref name="channel-binary-element"/>
</oneOrMore>
<empty/>
</element>
</define>
<define ns="" name="channel-binary-element">
<element ns="" name="binary">
<attribute name="name"/>
<optional>
<attribute name="binaryarch"/>
</optional>
<optional>
<attribute name="project"/>
</optional>
<optional>
<attribute name="repository"/>
</optional>
<optional>
<attribute name="package"/>
</optional>
<optional>
<attribute name="arch">
<ref name="build-arch" />
</attribute>
</optional>
<optional>
<attribute name="supportstatus">
<ref name="supportstatus-choices" />
</attribute>
</optional>
<empty/>
</element>
</define>
</grammar>
|