mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
New epp examples, legal doc type validations fix
This commit is contained in:
parent
efad36929e
commit
7130533d43
4 changed files with 2381 additions and 1287 deletions
|
@ -62,8 +62,8 @@ class EppController < ApplicationController
|
|||
|
||||
# validate legal document's type here because it may be in most of the requests
|
||||
@prefix = nil
|
||||
if element_count('extension > extdata > legalDocument') > 0
|
||||
requires_attribute('extension > extdata > legalDocument', 'type', values: LegalDocument::TYPES)
|
||||
if element_count('extdata > legalDocument') > 0
|
||||
requires_attribute('extdata > legalDocument', 'type', values: LegalDocument::TYPES)
|
||||
end
|
||||
|
||||
handle_errors and return if epp_errors.any?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue