Merge branch '109070924-xml-schemas-all' into staging

This commit is contained in:
Matt Farnsworth 2015-11-30 11:43:29 +02:00
commit b3fb99a7cd
2 changed files with 2 additions and 7 deletions

View file

@ -73,10 +73,7 @@ class EppController < ApplicationController
end
def schema
# TODO: Support multiple schemas
return DOMAIN_SCHEMA if params[:epp_object_type] == :domain
return CONTACT_SCHEMA if params[:epp_object_type] == :contact
EPP_SCHEMA
EPP_ALL_SCHEMA
end
def generate_svtrid

View file

@ -1,3 +1 @@
EPP_SCHEMA = Nokogiri::XML::Schema(File.read("lib/schemas/epp-1.0.xsd"))
DOMAIN_SCHEMA = Nokogiri::XML::Schema(File.read("lib/schemas/domain-eis-1.0.xsd"))
CONTACT_SCHEMA = Nokogiri::XML::Schema(File.read("lib/schemas/contact-eis-1.0.xsd"))
EPP_ALL_SCHEMA = Nokogiri::XML::Schema(File.read("lib/schemas/all-ee-1.0.xsd"))