mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Skip some validations #2752
This commit is contained in:
parent
4294bf564c
commit
4c52e3b0b4
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class EppController < ApplicationController
|
|||
|
||||
before_action :validate_against_schema
|
||||
def validate_against_schema
|
||||
return if ['hello', 'error'].include?(params[:action])
|
||||
return if ['hello', 'error', 'keyrelay', 'not_found'].include?(params[:action])
|
||||
params[:schema] = 'epp-1.0.xsd' unless params[:schema]
|
||||
xsd = Nokogiri::XML::Schema(File.read("lib/schemas/#{params[:schema]}"))
|
||||
xsd.validate(params[:nokogiri_frame]).each do |error|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue