Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-21 18:58:14 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-21 19:00:23 -0400
commit6dfa860e25f59e48bb8977f4e999bdc9b7c7c590 (patch)
treed0c932aba2bc26cc07fe1aa7157c875d06f4f30d
parentd9bef9d0289c0702e1665fc3f3fc5b94ee8d2138 (diff)
downloadtame-6dfa860e25f59e48bb8977f4e999bdc9b7c7c590.tar.gz
tame-6dfa860e25f59e48bb8977f4e999bdc9b7c7c590.tar.bz2
tame-6dfa860e25f59e48bb8977f4e999bdc9b7c7c590.zip
[BC BREAK] insurance (_premium_): Make @desc@ requiredv3.0.0
* core/insurance.xml (_premium_)[@desc@]: Make required.
-rw-r--r--core/insurance.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/insurance.xml b/core/insurance.xml
index c77e959..8cd19e9 100644
--- a/core/insurance.xml
+++ b/core/insurance.xml
@@ -92,6 +92,20 @@
<!-- not yet used, but it will at least serve as code
documentation for the time being -->
<param name="@desc@" desc="Premium description" />
+ <unless name="@desc@">
+ <unless name="@generates@" eq="">
+ <error>
+ a description (@desc@) is required for
+ `<param-value name="@generates@" />'
+ </error>
+ </unless>
+ <if name="@generates@" eq="">
+ <error>
+ a description (@desc@) is required for
+ `<param-value name="@yields@" />'
+ </error>
+ </if>
+ </unless>
<rate-each class="@class@" no="@no@" yields="@yields@"