Use contact-ee-1.1.xsd schema for contact create and update

#251
This commit is contained in:
Artur Beljajev 2016-12-06 17:55:35 +02:00
parent 763e327d1d
commit 9e4bcf69e6
2 changed files with 3 additions and 3 deletions

View file

@ -1368,7 +1368,7 @@ REQUEST:
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<update> <update>
<contact:update xmlns:contact="https://epp.tld.ee/schema/contact-eis-1.0.xsd"/> <contact:update xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"/>
</update> </update>
<clTRID>ABC-12345</clTRID> <clTRID>ABC-12345</clTRID>
</command> </command>
@ -1382,7 +1382,7 @@ RESPONSE:
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
<response> <response>
<result code="2001"> <result code="2001">
<msg lang="en">Element '{https://epp.tld.ee/schema/contact-eis-1.0.xsd}update': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-eis-1.0.xsd}id ).</msg> <msg lang="en">Element '{https://epp.tld.ee/schema/contact-ee-1.1.xsd}update': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-ee-1.1.xsd}id ).</msg>
</result> </result>
<trID> <trID>
<clTRID>ABC-12345</clTRID> <clTRID>ABC-12345</clTRID>

View file

@ -1,7 +1,7 @@
class EppConstraint class EppConstraint
OBJECT_TYPES = { OBJECT_TYPES = {
domain: { domain: 'https://epp.tld.ee/schema/domain-eis-1.0.xsd' }, domain: { domain: 'https://epp.tld.ee/schema/domain-eis-1.0.xsd' },
contact: { contact: 'https://epp.tld.ee/schema/contact-eis-1.0.xsd' } contact: { contact: 'https://epp.tld.ee/schema/contact-ee-1.1.xsd' }
} }
def initialize(type) def initialize(type)