From 038e086825c8e68c9d75a00c1fcd1df4920eb8c9 Mon Sep 17 00:00:00 2001 From: Jens Stalder Date: Fri, 9 Oct 2020 18:33:25 +0200 Subject: [PATCH 1/5] Initial --- examples/full.xml | 4 ++++ schema/schema.xsd | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/examples/full.xml b/examples/full.xml index 33616bc..402395d 100644 --- a/examples/full.xml +++ b/examples/full.xml @@ -242,6 +242,10 @@ 850000 25000 + + 750000 + 950000 + 5 745 diff --git a/schema/schema.xsd b/schema/schema.xsd index 80695a3..5c35f6e 100644 --- a/schema/schema.xsd +++ b/schema/schema.xsd @@ -713,6 +713,19 @@ + + + Optional price range to describe a more flexible pricing model for purchase + + + + + + + + + + The percententage of the gross price which has to paid in WIR Franc electronic currency. From 4b7b01c0fb03c623d785e3f2ea6ac927651e32ff Mon Sep 17 00:00:00 2001 From: Jens Stalder Date: Fri, 9 Oct 2020 18:54:59 +0200 Subject: [PATCH 2/5] Assert and test --- schema/schema.xsd | 3 +-- .../should-fail/price-range-min-gt-max.xml | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 scripts/tests/should-fail/price-range-min-gt-max.xml diff --git a/schema/schema.xsd b/schema/schema.xsd index 5c35f6e..3f66bfd 100644 --- a/schema/schema.xsd +++ b/schema/schema.xsd @@ -721,11 +721,10 @@ + - - The percententage of the gross price which has to paid in WIR Franc electronic currency. diff --git a/scripts/tests/should-fail/price-range-min-gt-max.xml b/scripts/tests/should-fail/price-range-min-gt-max.xml new file mode 100644 index 0000000..4c4616f --- /dev/null +++ b/scripts/tests/should-fail/price-range-min-gt-max.xml @@ -0,0 +1,25 @@ + + + + + LA-644238 + rent +
+ CH + Kirchlindach + 3038 +
+ + + 850000 + 25000 + + 1050000 + 550000 + + 5 + + +
+
+
From 80dd16410cff8d5701df073ac956e6a0e8788d7f Mon Sep 17 00:00:00 2001 From: Jens Stalder Date: Fri, 9 Oct 2020 19:03:30 +0200 Subject: [PATCH 3/5] assert in the right place --- schema/schema.xsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/schema.xsd b/schema/schema.xsd index 3f66bfd..97dc375 100644 --- a/schema/schema.xsd +++ b/schema/schema.xsd @@ -721,8 +721,8 @@ - +
From e3ab499bc146d0b9548b434f26eabb89a45390ed Mon Sep 17 00:00:00 2001 From: Jens Stalder Date: Fri, 9 Oct 2020 19:50:44 +0200 Subject: [PATCH 4/5] Back to 1.0 for now sadface --- schema/schema.xsd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/schema/schema.xsd b/schema/schema.xsd index 97dc375..896a56b 100644 --- a/schema/schema.xsd +++ b/schema/schema.xsd @@ -718,11 +718,10 @@ Optional price range to describe a more flexible pricing model for purchase - + - - + From a7c5c2659930891d6df539133fe5362a11f20a84 Mon Sep 17 00:00:00 2001 From: Jens Stalder Date: Fri, 9 Oct 2020 19:52:56 +0200 Subject: [PATCH 5/5] remove test since it wont work --- .../should-fail/price-range-min-gt-max.xml | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 scripts/tests/should-fail/price-range-min-gt-max.xml diff --git a/scripts/tests/should-fail/price-range-min-gt-max.xml b/scripts/tests/should-fail/price-range-min-gt-max.xml deleted file mode 100644 index 4c4616f..0000000 --- a/scripts/tests/should-fail/price-range-min-gt-max.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - LA-644238 - rent -
- CH - Kirchlindach - 3038 -
- - - 850000 - 25000 - - 1050000 - 550000 - - 5 - - -
-
-