Skip to content

Commit

Permalink
Bedre restrictions på NorskPostnummer og Landkode
Browse files Browse the repository at this point in the history
  • Loading branch information
runeflobakk committed Apr 14, 2014
1 parent 4a9204c commit 0849d59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xsd/sdp-melding.xsd
Expand Up @@ -260,7 +260,9 @@


<xsd:simpleType name="NorskPostnummer">
<xsd:restriction base="xsd:string" />
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d{4}" />
</xsd:restriction>
</xsd:simpleType>


Expand Down Expand Up @@ -293,7 +295,7 @@
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2" />
<xsd:pattern value="[a-zA-Z]{2}"></xsd:pattern>
</xsd:restriction>
</xsd:simpleType>

Expand Down

0 comments on commit 0849d59

Please sign in to comment.