I am using the below simpleType for allowing only 5 type of words. This is working fine. but the problem is, it is failing, if i appended only one character with upper case at the end of the string.
Please help me regarding this.
<xsd:simpleType name="UpdateMemberPhysicalCardTypeType">
<xsd:annotation>
<xsd:documentation>
Type for physical data type
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="([PERMANENT|TEMPORARY|NOT CARDED|RETAIL CARD|VIRTUAL CARD])*"/>
</xsd:restriction>
</xsd:simpleType>
Success Case:
<typ:PhysicalCardType>PERMANENT</typ:PhysicalCardType>
-> working fine
<typ:PhysicalCardType>PERMANENTqwer</typ:PhysicalCardType>
-> getting error. it is working fine.
Failure case:
<typ:PhysicalCardType>PERMANENTD</typ:PhysicalCardType>
-> not getting error. This is not working. it is allowing this word. It should not allow this one.