mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Merge branch '109070924-xml-schemas-all' into staging
This commit is contained in:
commit
b3fb99a7cd
2 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue