commit d83d2584fd4698719b8eb78a4e0e9c8dad698aca
parent 17b05a076510c359911993eceb55258e29a3ef7d
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 8 Nov 2022 15:08:41 +0100
add singular constraint, fixes #6520
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec
@@ -4,6 +4,7 @@
#
%rec: TalerErrorCode
%key: Value
+%singular: Value
%typedef: ValueRange_t range 0 9999
%constraint: ( Value < 100 ) || ( Value > 999 )
%type: Value ValueRange_t
@@ -15,6 +16,7 @@
%type: Name Name_t
%unique: Name
%mandatory: Name
+%singular: Name
# A status of 0 means not an HTTP status (i.e. created client-side)
%type: HttpStatus rec HttpStatusCode
%mandatory: HttpStatus
@@ -28,7 +30,6 @@ Description: Special code to indicate success (no error).
HttpStatus: 0
# We could not get the error code.
-
Value: 1
Name: INVALID
Description: A non-integer error code was returned in the JSON response.