diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-08 15:08:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-08 15:08:41 +0100 |
commit | d83d2584fd4698719b8eb78a4e0e9c8dad698aca (patch) | |
tree | e81f388daa6a0f6d724347ced3e48a7612a09f85 | |
parent | 17b05a076510c359911993eceb55258e29a3ef7d (diff) | |
download | gana-d83d2584fd4698719b8eb78a4e0e9c8dad698aca.tar.gz gana-d83d2584fd4698719b8eb78a4e0e9c8dad698aca.zip |
add singular constraint, fixes #6520
-rw-r--r-- | gnu-taler-error-codes/registry.rec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec index 128fd2b..171460f 100644 --- a/gnu-taler-error-codes/registry.rec +++ b/gnu-taler-error-codes/registry.rec | |||
@@ -4,6 +4,7 @@ | |||
4 | # | 4 | # |
5 | %rec: TalerErrorCode | 5 | %rec: TalerErrorCode |
6 | %key: Value | 6 | %key: Value |
7 | %singular: Value | ||
7 | %typedef: ValueRange_t range 0 9999 | 8 | %typedef: ValueRange_t range 0 9999 |
8 | %constraint: ( Value < 100 ) || ( Value > 999 ) | 9 | %constraint: ( Value < 100 ) || ( Value > 999 ) |
9 | %type: Value ValueRange_t | 10 | %type: Value ValueRange_t |
@@ -15,6 +16,7 @@ | |||
15 | %type: Name Name_t | 16 | %type: Name Name_t |
16 | %unique: Name | 17 | %unique: Name |
17 | %mandatory: Name | 18 | %mandatory: Name |
19 | %singular: Name | ||
18 | # A status of 0 means not an HTTP status (i.e. created client-side) | 20 | # A status of 0 means not an HTTP status (i.e. created client-side) |
19 | %type: HttpStatus rec HttpStatusCode | 21 | %type: HttpStatus rec HttpStatusCode |
20 | %mandatory: HttpStatus | 22 | %mandatory: HttpStatus |
@@ -28,7 +30,6 @@ Description: Special code to indicate success (no error). | |||
28 | HttpStatus: 0 | 30 | HttpStatus: 0 |
29 | 31 | ||
30 | # We could not get the error code. | 32 | # We could not get the error code. |
31 | |||
32 | Value: 1 | 33 | Value: 1 |
33 | Name: INVALID | 34 | Name: INVALID |
34 | Description: A non-integer error code was returned in the JSON response. | 35 | Description: A non-integer error code was returned in the JSON response. |