Skip to content

Commit 349355e

Browse files
authored
Update URL element to handle multiple values (#31)
1 parent efc5eef commit 349355e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

drafts/v1.0/MetronInfo.xsd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,21 @@
2727
<xs:element name="Reprints" type="reprintsType" minOccurs="0" />
2828
<xs:element name="GTIN" type="gtinType" minOccurs="0" />
2929
<xs:element name="AgeRating" type="ageRatingType" minOccurs="0" default="Unknown" />
30-
<xs:element name="URL" type="xs:string" minOccurs="0" /> <!-- Should we make this an array? -->
30+
<xs:element name="URL" type="urlsType" minOccurs="0" />
3131
<xs:element name="Credits" type="creditsType" minOccurs="0" />
3232
<xs:element name="Pages" type="ArrayOfComicPageInfo" minOccurs="0" />
3333
</xs:all>
3434
</xs:complexType>
3535

36+
<xs:complexType name="urlsType">
37+
<xs:sequence>
38+
<!-- The following element should be for the primary source url -->
39+
<xs:element name="Primary" type="xs:string" />
40+
<!-- The following should be used for any additional urls -->
41+
<xs:element name="Alternative" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
42+
</xs:sequence>
43+
</xs:complexType>
44+
3645
<xs:complexType name="sourcesType">
3746
<xs:sequence>
3847
<!-- The following element should be used for the primary source of metadata information. -->

drafts/v1.0/Sample.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@
8383
<Reprint id="65498">Foo Bar #001 (2002)</Reprint>
8484
<Reprint>Foo Bar #002 (2022)</Reprint>
8585
</Reprints>
86-
<URL>https://comicvine.gamespot.com/justice-league-1-justice-league-part-one/4000-290431/</URL>
86+
<URL>
87+
<Primary>https://comicvine.gamespot.com/justice-league-1-justice-league-part-one/4000-290431/</Primary>
88+
<Alternative>https://foo.bar</Alternative>
89+
</URL>
8790
<Credits>
8891
<Credit>
8992
<Creator id="32165">Geoff Johns</Creator>

0 commit comments

Comments
 (0)