Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #416 from airbrake/415-fix-build
Revert "start using remote XSD file when verifying XML in tests"
- Loading branch information
Showing
2 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<xs:element name="notice"> | ||
<xs:complexType> | ||
<xs:all> | ||
<xs:element name="api-key" type="xs:string"/> | ||
<xs:element name="notifier" type="notifier"/> | ||
<xs:element name="error" type="error"/> | ||
<xs:element name="request" type="request" minOccurs="0"/> | ||
<xs:element name="server-environment" type="serverEnvironment"/> | ||
<xs:element name="current-user" type="current-user" minOccurs="0"/> | ||
<xs:element name="framework" type="xs:string" minOccurs="0"/> | ||
</xs:all> | ||
<xs:attribute name="version" type="xs:string" use="required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:complexType name="notifier"> | ||
<xs:all> | ||
<xs:element name="name" type="xs:string"/> | ||
<xs:element name="version" type="xs:string"/> | ||
<xs:element name="url" type="xs:string"/> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="error"> | ||
<xs:all> | ||
<xs:element name="class" type="xs:string"/> | ||
<xs:element name="message" type="xs:string" minOccurs="0"/> | ||
<xs:element name="backtrace" type="backtrace"/> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="backtrace"> | ||
<xs:sequence> | ||
<xs:element name="line" maxOccurs="unbounded" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:attribute name="file" type="xs:string" use="required"/> | ||
<xs:attribute name="number" type="xs:string" use="required"/> | ||
<xs:attribute name="method" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="request"> | ||
<xs:all> | ||
<xs:element name="url" type="xs:string"/> | ||
<xs:element name="component" type="xs:string"/> | ||
<xs:element name="action" type="xs:string" minOccurs="0"/> | ||
<xs:element name="params" type="varList" minOccurs="0"/> | ||
<xs:element name="session" type="varList" minOccurs="0"/> | ||
<xs:element name="cgi-data" type="varList" minOccurs="0"/> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="varList"> | ||
<xs:sequence> | ||
<xs:element name="var" type="var" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="var" mixed="true"> | ||
<xs:sequence> | ||
<xs:element name="var" type="var" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
<xs:attribute name="key" type="xs:string" use="required"/> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="serverEnvironment"> | ||
<xs:sequence> | ||
<xs:element name="project-root" type="xs:string" minOccurs="0"/> | ||
<xs:element name="environment-name" type="xs:string"/> | ||
<xs:element name="app-version" type="xs:string" minOccurs="0"/> | ||
<xs:element name="hostname" type="xs:string" minOccurs="0"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="current-user"> | ||
<xs:all> | ||
<xs:element name="id" type="xs:string"/> | ||
<xs:element name="name" type="xs:string" minOccurs="0"/> | ||
<xs:element name="email" type="xs:string" minOccurs="0"/> | ||
<xs:element name="username" type="xs:string" minOccurs="0"/> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters