Skip to content

Commit

Permalink
[api] fix all schema and xml examples, drop outdated one and enable s…
Browse files Browse the repository at this point in the history
…chema validation in test suite
  • Loading branch information
adrianschroeter committed Nov 25, 2013
1 parent 6c8e53a commit dc44bf8
Show file tree
Hide file tree
Showing 7 changed files with 165 additions and 260 deletions.
4 changes: 2 additions & 2 deletions docs/api/api/attrib_type.xml
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<definition name="attr_name" namespace="OBS">
<count>2</count>
<issue_list/>
<default>
<value>A</value>
<value>B</value>
Expand All @@ -11,6 +9,8 @@
<value>B</value>
<value>C</value>
</allowed>
<count>2</count>
<issue_list/>
<modifiable_by user="demouser"/>
<modifiable_by group="attribute_maintainers"/>
<modifiable_by role="demorole"/>
Expand Down
27 changes: 13 additions & 14 deletions docs/api/api/buildhistory.xsd
@@ -1,13 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<xs:annotation>
<xs:documentation>
This schema describes the response data of a succesful
buildhistory request to the buildservice API
</xs:documentation>
</xs:annotation>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="buildhistory">
<xs:complexType>
Expand All @@ -18,12 +10,19 @@
</xs:element>

<xs:element name="entry">
<xs:annotation>
<xs:documentation>
This schema describes the response data of a succesful
buildhistory request to the buildservice API
</xs:documentation>
</xs:annotation>

<xs:complexType>
<xs:attribute name="rev" type="xs:number"/>
<xs:attribute name="srcmd5" type="xs:string"/>
<xs:attribute name="versrel" type="xs:string"/>
<xs:attribute name="bcnt" type="xs:number"/>
<xs:attribute name="time" type="xs:number"/>
<xs:attribute name="rev" type="xs:string" />
<xs:attribute name="srcmd5" type="xs:string" />
<xs:attribute name="versrel" type="xs:string" />
<xs:attribute name="bcnt" type="xs:string" />
<xs:attribute name="time" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:schema>
239 changes: 146 additions & 93 deletions docs/api/api/issue_trackers.xml
@@ -1,179 +1,232 @@
<?xml version="1.0" encoding="UTF-8"?>
<issue-trackers>
<issue-tracker>
<description>Boost Trac</description>
<kind>trac</kind>
<name>boost</name>
<regex>boost#\d+</regex>
<show-url>https://svn.boost.org/trac/boost/ticket/@@@</show-url>
<kind>trac</kind>
<description>Boost Trac</description>
<url>https://svn.boost.org/trac/boost/</url>
<show-url>https://svn.boost.org/trac/boost/ticket/@@@</show-url>
<regex>boost#(\d+)</regex>
<label>boost#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Clutter Project Bugzilla</description>
<kind>bugzilla</kind>
<name>bco</name>
<regex>bco#\d+</regex>
<show-url>http://bugzilla.clutter-project.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Clutter Project Bugzilla</description>
<url>http://bugzilla.clutter-project.org/</url>
<show-url>http://bugzilla.clutter-project.org/show_bug.cgi?id=@@@</show-url>
<regex>bco#(\d+)</regex>
<label>bco#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>CPAN Bugs</description>
<kind></kind>
<name>RT</name>
<regex>RT#\d+</regex>
<show-url>http://rt.cpan.org/Public/Bug/Display.html?id=@@@</show-url>
<kind>other</kind>
<description>CPAN Bugs</description>
<url>https://rt.cpan.org/</url>
<show-url>http://rt.cpan.org/Public/Bug/Display.html?id=@@@</show-url>
<regex>RT#(\d+)</regex>
<label>RT#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>CVE Numbers</description>
<kind>cve</kind>
<name>cve</name>
<regex>CVE-\d{4,4}-\d{4,4}</regex>
<show-url>http://www.cvedetails.com/cve/@@@</show-url>
<url>http://www.cvedetails.com/</url>
</issue-tracker>
<issue-tracker>
<description>Debian Bugzilla</description>
<kind>bugzilla</kind>
<name>deb</name>
<regex>deb#\d+</regex>
<show-url>http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=@@@</show-url>
<kind>bugzilla</kind>
<description>Debian Bugzilla</description>
<url>http://bugs.debian.org/</url>
<show-url>http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=@@@</show-url>
<regex>deb#(\d+)</regex>
<label>deb#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Freedesktop.org Bugzilla</description>
<kind>bugzilla</kind>
<name>fdo</name>
<regex>fdo#\d+</regex>
<show-url>https://bugs.freedesktop.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Freedesktop.org Bugzilla</description>
<url>https://bugs.freedesktop.org/</url>
<show-url>https://bugs.freedesktop.org/show_bug.cgi?id=@@@</show-url>
<regex>fdo#(\d+)</regex>
<label>fdo#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>GCC Bugzilla</description>
<kind>bugzilla</kind>
<name>GCC</name>
<regex>GCC#\d+</regex>
<show-url>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>GCC Bugzilla</description>
<url>http://gcc.gnu.org/bugzilla/</url>
<show-url>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=@@@</show-url>
<regex>GCC#(\d+)</regex>
<label>GCC#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Gnome Bugzilla</description>
<kind>bugzilla</kind>
<name>bgo</name>
<regex>bgo#\d+</regex>
<show-url>https://bugzilla.gnome.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Gnome Bugzilla</description>
<url>https://bugzilla.gnome.org/</url>
<show-url>https://bugzilla.gnome.org/show_bug.cgi?id=@@@</show-url>
<regex>bgo#(\d+)</regex>
<label>bgo#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Icculus.org Bugzilla</description>
<kind>bugzilla</kind>
<name>bio</name>
<regex>bio#\d+</regex>
<show-url>https://bugzilla.icculus.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Icculus.org Bugzilla</description>
<url>https://bugzilla.icculus.org/</url>
<show-url>https://bugzilla.icculus.org/show_bug.cgi?id=@@@</show-url>
<regex>bio#(\d+)</regex>
<label>bio#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Kernel.org Bugzilla</description>
<kind>bugzilla</kind>
<name>bko</name>
<regex>(Kernel|K|bko)#\d+</regex>
<show-url>https://bugzilla.kernel.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Kernel.org Bugzilla</description>
<url>https://bugzilla.kernel.org/</url>
<show-url>https://bugzilla.kernel.org/show_bug.cgi?id=@@@</show-url>
<regex>(?:Kernel|K|bko)#(\d+)</regex>
<label>bko#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>KDE Bugzilla</description>
<kind>bugzilla</kind>
<name>kde</name>
<regex>kde#\d+</regex>
<show-url>https://bugs.kde.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>KDE Bugzilla</description>
<url>https://bugs.kde.org/</url>
<show-url>https://bugs.kde.org/show_bug.cgi?id=@@@</show-url>
<regex>kde#(\d+)</regex>
<label>kde#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Launchpad.net Bugtracker</description>
<kind>launchpad</kind>
<name>lp</name>
<regex>b?lp#\d+</regex>
<show-url>https://bugs.launchpad.net/bugs/@@@</show-url>
<kind>launchpad</kind>
<description>Launchpad.net Bugtracker</description>
<url>https://bugs.launchpad.net/bugs/</url>
<show-url>https://bugs.launchpad.net/bugs/@@@</show-url>
<regex>b?lp#(\d+)</regex>
<label>lp#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Meego Bugs</description>
<kind>bugzilla</kind>
<name>Meego</name>
<regex>Meego#\d+</regex>
<show-url>https://bugs.meego.com/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Meego Bugs</description>
<url>https://bugs.meego.com/</url>
<show-url>https://bugs.meego.com/show_bug.cgi?id=@@@</show-url>
<regex>Meego#(\d+)</regex>
<label>Meego#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Mozilla Bugzilla</description>
<kind>bugzilla</kind>
<name>bmo</name>
<regex>bmo#\d+</regex>
<show-url>https://bugzilla.mozilla.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Mozilla Bugzilla</description>
<url>https://bugzilla.mozilla.org/</url>
<show-url>https://bugzilla.mozilla.org/show_bug.cgi?id=@@@</show-url>
<regex>bmo#(\d+)</regex>
<label>bmo#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Novell Bugzilla</description>
<kind>bugzilla</kind>
<name>bnc</name>
<regex>bnc#\d+</regex>
<kind>bugzilla</kind>
<description>Novell Bugzilla</description>
<url>https://apibugzilla.novell.com</url>
<show-url>https://bugzilla.novell.com/show_bug.cgi?id=@@@</show-url>
<url>https://bugzilla.novell.com/</url>
<regex>(?:bnc|BNC)\s*[#:]\s*(\d+)</regex>
<label>bnc#@@@</label>
<enable-fetch>true</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>OpenLDAP Issue Tracker</description>
<kind></kind>
<name>ITS</name>
<regex>ITS#\d+</regex>
<show-url>http://www.openldap.org/its/index.cgi/Contrib?id=@@@</show-url>
<kind>other</kind>
<description>OpenLDAP Issue Tracker</description>
<url>http://www.openldap.org/its/</url>
<show-url>http://www.openldap.org/its/index.cgi/Contrib?id=@@@</show-url>
<regex>ITS#(\d+)</regex>
<label>ITS#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>OpenOffice.org Bugzilla</description>
<kind>bugzilla</kind>
<name>i</name>
<regex>i#\d+</regex>
<show-url>http://openoffice.org/bugzilla/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>OpenOffice.org Bugzilla</description>
<url>http://openoffice.org/bugzilla/</url>
<show-url>http://openoffice.org/bugzilla/show_bug.cgi?id=@@@</show-url>
<regex>i#(\d+)</regex>
<label>i#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>openSUSE Feature Database</description>
<kind>fate</kind>
<name>fate</name>
<regex>[Ff]ate#\d+</regex>
<show-url>https://features.opensuse.org/@@@</show-url>
<kind>fate</kind>
<description>openSUSE Feature Database</description>
<url>https://features.opensuse.org/</url>
<show-url>https://features.opensuse.org/@@@</show-url>
<regex>(?:fate|Fate|FATE)\s*#\s*(\d+)</regex>
<label>fate#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>RedHat Bugzilla</description>
<kind>bugzilla</kind>
<name>rh</name>
<regex>rh#\d+</regex>
<show-url>https://bugzilla.redhat.com/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>RedHat Bugzilla</description>
<url>https://bugzilla.redhat.com/</url>
<show-url>https://bugzilla.redhat.com/show_bug.cgi?id=@@@</show-url>
<regex>rh#(\d+)</regex>
<label>rh#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Samba Bugzilla</description>
<kind>bugzilla</kind>
<name>bso</name>
<regex>bso#\d+</regex>
<show-url>https://bugzilla.samba.org/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Samba Bugzilla</description>
<url>https://bugzilla.samba.org/</url>
<show-url>https://bugzilla.samba.org/show_bug.cgi?id=@@@</show-url>
<regex>bso#(\d+)</regex>
<label>bso#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>SourceForge.net Tracker</description>
<kind>sourceforge</kind>
<name>sf</name>
<regex>sf#\d+</regex>
<show-url>http://sf.net/support/tracker.php?aid=@@@</show-url>
<kind>sourceforge</kind>
<description>SourceForge.net Tracker</description>
<url>http://sf.net/support/</url>
<show-url>http://sf.net/support/tracker.php?aid=@@@</show-url>
<regex>sf#(\d+)</regex>
<label>sf#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<description>Xamarin Bugzilla</description>
<kind>bugzilla</kind>
<name>Xamarin</name>
<regex>Xamarin#\d+</regex>
<show-url>http://bugzilla.xamarin.com/show_bug.cgi?id=@@@</show-url>
<kind>bugzilla</kind>
<description>Xamarin Bugzilla</description>
<url>http://bugzilla.xamarin.com/index.cgi</url>
<show-url>http://bugzilla.xamarin.com/show_bug.cgi?id=@@@</show-url>
<regex>Xamarin#(\d+)</regex>
<label>Xamarin#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<name>cve</name>
<kind>cve</kind>
<description>CVE Numbers</description>
<url>http://cve.mitre.org/</url>
<show-url>http://cve.mitre.org/cgi-bin/cvename.cgi?name=@@@</show-url>
<regex>(CVE-\d\d\d\d-\d+)</regex>
<label>@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
<issue-tracker>
<name>bxo</name>
<kind>bugzilla</kind>
<description>XFCE Bugzilla</description>
<url>https://bugzilla.xfce.org/</url>
<show-url>https://bugzilla.xfce.org/show_bug.cgi?id=@@@</show-url>
<regex>bxo#(\d+)</regex>
<label>bxo#@@@</label>
<enable-fetch>false</enable-fetch>
</issue-tracker>
</issue-trackers>
2 changes: 2 additions & 0 deletions docs/api/api/obs.rng
Expand Up @@ -25,6 +25,8 @@

<value>hppa</value>

<value>m68k</value>

<value>i386</value>
<value>i486</value>
<value>i586</value>
Expand Down

0 comments on commit dc44bf8

Please sign in to comment.