request and response have the same domain schema

This commit is contained in:
Oleg Hasjanov 2021-06-22 12:59:56 +03:00
parent 230fb301a7
commit 6f431232f4
7 changed files with 28 additions and 8 deletions

View file

@ -5,7 +5,8 @@ xml.epp_head do
end
xml.resData do
xml.tag!('domain:creData', 'xmlns:domain' => Xsd::Schema.filename(for_prefix: 'domain-ee')) do
xml.tag!('domain:creData',
'xmlns:domain' => Xsd::Schema.filename(for_prefix: @schema_prefix)) do
xml.tag!('domain:name', @domain.name)
xml.tag!('domain:crDate', @domain.created_at.try(:iso8601))
xml.tag!('domain:exDate', @domain.valid_to.iso8601)