Sha256: 49b3d717290777a038cb3aea6d32424bf1c41cc06cc49c9886fed50eeed348ae

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

<?xml version="1.0" encoding="utf-8"?>
<xs:schema
    attributeFormDefault="unqualified"
    elementFormDefault="qualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:include schemaLocation="types.xsd" />

  <xs:simpleType name="id">
    <xs:restriction base="xs:token">
      <xs:pattern value="[a-zA-Z0-9/_-]{1,40}" />
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="gtin">
    <xs:restriction base="xs:token">
      <xs:pattern value="[0-9]{8}|[0-9]{12,14}" />
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="mpn">
    <xs:restriction base="xs:token">
      <xs:minLength value="1" />
      <xs:maxLength value="50" />
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="sku">
    <xs:restriction base="xs:token">
      <xs:minLength value="1" />
      <xs:maxLength value="50" />
    </xs:restriction>
  </xs:simpleType>

  <xs:complexType name="identity">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="id" type="id" />
      <xs:element minOccurs="0" maxOccurs="1" name="gtin" type="gtin" />
      <xs:element minOccurs="0" maxOccurs="1" name="mpn" type="mpn" />
      <xs:element minOccurs="0" maxOccurs="1" name="sku" type="sku" />
    </xs:sequence>
  </xs:complexType>

</xs:schema>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cdon_feed_validator-1.0.0 lib/xsd/identities.xsd