-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JSON Validation parameter substitution deeper search (#8128)
- Loading branch information
Showing
8 changed files
with
159 additions
and
26 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
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
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
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
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
29 changes: 29 additions & 0 deletions
29
core/src/test/resources/Validation/Json2Xml/ParameterSubstitution/CommonResponse.xsd
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,29 @@ | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xs:complexType name="links"> | ||
<xs:sequence> | ||
<xs:element name="link" type="link" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:complexType name="errors"> | ||
<xs:sequence> | ||
<xs:element name="error" type="error" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:complexType name="link"> | ||
<xs:sequence> | ||
<xs:element name="href" type="xs:anyURI" minOccurs="1" maxOccurs="1"/> | ||
<xs:element name="rel" type="xs:string" minOccurs="1" maxOccurs="1"/> | ||
<xs:element name="type" type="xs:string" minOccurs="1" maxOccurs="1"/> | ||
<xs:element name="title" type="xs:string" minOccurs="0"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:complexType name="error"> | ||
<xs:sequence> | ||
<xs:element name="type" type="xs:string" minOccurs="1" maxOccurs="1"/> | ||
<xs:element name="title" type="xs:string" minOccurs="1" maxOccurs="1"/> | ||
<xs:element name="status" type="xs:string" minOccurs="1" maxOccurs="1"/> | ||
<xs:element name="detail" type="xs:string" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="instance" type="xs:anyURI" minOccurs="1" maxOccurs="1"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:schema> |
11 changes: 11 additions & 0 deletions
11
core/src/test/resources/Validation/Json2Xml/ParameterSubstitution/Main.xsd
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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xsd:include schemaLocation="CommonResponse.xsd"/> | ||
<xsd:element name="GetDocumentAttributes_Error"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="errors" type="errors" minOccurs="0" maxOccurs="unbounded"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:schema> |
11 changes: 11 additions & 0 deletions
11
core/src/test/resources/Validation/Json2Xml/ParameterSubstitution/expected_output.json
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,11 @@ | ||
[ | ||
[ | ||
{ | ||
"type": "/errors/", | ||
"title": "More than one document found", | ||
"status": "DATA_ERROR", | ||
"detail": "The Devil's In The Details", | ||
"instance": "/archiving/documents" | ||
} | ||
] | ||
] |