mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +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
|
end
|
||||||
|
|
||||||
def schema
|
def schema
|
||||||
# TODO: Support multiple schemas
|
EPP_ALL_SCHEMA
|
||||||
return DOMAIN_SCHEMA if params[:epp_object_type] == :domain
|
|
||||||
return CONTACT_SCHEMA if params[:epp_object_type] == :contact
|
|
||||||
EPP_SCHEMA
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate_svtrid
|
def generate_svtrid
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
EPP_SCHEMA = Nokogiri::XML::Schema(File.read("lib/schemas/epp-1.0.xsd"))
|
EPP_ALL_SCHEMA = Nokogiri::XML::Schema(File.read("lib/schemas/all-ee-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"))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue