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) |
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 @@ # %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. |