-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CXF-8966] : fix validation of nil int in xsd
- Loading branch information
Showing
5 changed files
with
163 additions
and
50 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
11 changes: 11 additions & 0 deletions
11
core/src/test/java/org/apache/cxf/databinding/source/resources/schema.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 @@ | ||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.test.org/service/"> | ||
<xsd:element name="NullTestOperationRequest" nillable="true"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element nillable="true" name="inInt" type="xsd:int" maxOccurs="1" minOccurs="0" ></xsd:element> | ||
<xsd:element nillable="true" name="inInteger" type="xsd:integer" maxOccurs="1" minOccurs="0" ></xsd:element> | ||
<xsd:element nillable="true" name="inString" type="xsd:string" maxOccurs="1" minOccurs="0" ></xsd:element> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:schema> |
5 changes: 5 additions & 0 deletions
5
core/src/test/java/org/apache/cxf/databinding/source/resources/test-invalid.xml
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,5 @@ | ||
<ser:NullTestOperationRequest xmlns:ser="http://www.test.org/service/"> | ||
|
||
<inInt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="false"/> | ||
|
||
</ser:NullTestOperationRequest> |
7 changes: 7 additions & 0 deletions
7
core/src/test/java/org/apache/cxf/databinding/source/resources/test-valid.xml
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,7 @@ | ||
<ser:NullTestOperationRequest xmlns:ser="http://www.test.org/service/"> | ||
|
||
<inInt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/> | ||
<inInteger xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/> | ||
<inString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/> | ||
|
||
</ser:NullTestOperationRequest> |