-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic support for union type coalescence (fixes #397)
- Loading branch information
Michael Ganss
committed
Jul 17, 2023
1 parent
438f970
commit 45e06bc
Showing
5 changed files
with
151 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0.48448"> | ||
<xs:simpleType name="SnapshotDate"> | ||
<xs:restriction base="xs:date" /> | ||
</xs:simpleType> | ||
<xs:simpleType name="SnapshotDateTime"> | ||
<xs:restriction base="xs:dateTime" /> | ||
</xs:simpleType> | ||
|
||
<xs:element name="Snapshot"> | ||
<xs:complexType> | ||
<xs:attribute name="Date" use="required"> | ||
<xs:simpleType> | ||
<xs:union memberTypes="SnapshotDate SnapshotDateTime" /> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute name="Count" use="required"> | ||
<xs:simpleType> | ||
<xs:union memberTypes="xs:nonNegativeInteger xs:short xs:byte" /> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute name="Num" use="required"> | ||
<xs:simpleType> | ||
<xs:union memberTypes="xs:float xs:double xs:decimal" /> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
</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
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