mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Experimental domain validation #2799
This commit is contained in:
parent
1b831fc629
commit
c1f9a470df
1 changed files with 17 additions and 0 deletions
|
@ -6,6 +6,23 @@ class EppController < ApplicationController
|
|||
|
||||
before_action :generate_svtrid
|
||||
before_action :latin_only
|
||||
# before_action :validate_against_schema
|
||||
|
||||
# def validate_against_schema
|
||||
# if params[:epp_object_type] == :domain
|
||||
|
||||
# xsd = Nokogiri::XML::Schema(File.read('doc/schemas/domain-eis-1.0.xsd'))
|
||||
# xsd.validate(Nokogiri::XML(params[:raw_frame])).each do |error|
|
||||
# epp_errors << {
|
||||
# code: 2002,
|
||||
# msg: error
|
||||
# }
|
||||
# end
|
||||
# end
|
||||
|
||||
# handle_errors and return if epp_errors.any?
|
||||
# end
|
||||
|
||||
before_action :validate_request
|
||||
before_action :update_epp_session
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue