From a4366313a22d97716f32f2bd8de84162b1d0b53c Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Mon, 16 Jan 2017 13:56:49 +0700
Subject: Make the "argument" attribute of external validators optional.

---
 data/schemata/interface_definition.rnc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'data/schemata')

diff --git a/data/schemata/interface_definition.rnc b/data/schemata/interface_definition.rnc
index fc063ac..c23ea0b 100644
--- a/data/schemata/interface_definition.rnc
+++ b/data/schemata/interface_definition.rnc
@@ -114,8 +114,8 @@ constraint = element constraint
 # A constraint may also use an external validator rather than regex
 validator = element validator
 {
-    ( (attribute argument { text }) &
-      (attribute name { text }) ),
+    ( (attribute name { text })  &
+      (attribute argument { text })? ),
     empty
 }
 
-- 
cgit v1.2.3