View Issue Details

IDProjectCategoryView StatusLast Update
0010562Talerdocumentationpublic2025-11-08 08:19
Reporterhtgoebel Assigned ToChristian Grothoff  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Versiongit (master) 
Target Version1.2Fixed in Version1.2 
Summary0010562: Wrong type definitions for Timestamp and RelativeTime
DescriptionDokumention says:

interface Timestamp {
  t_s: number | "never";
}
interface RelativeTime {
  d_us: number | "forever";
}

According to https://en.wikipedia.org/wiki/JSON#Data_types, a "number" "may contain a fractional part". Anyhow, when passing such a number, Taler returns an error.

 ' "code": 22,\n'
 ' "field": "timestamp",\n'
Steps To ReproduceDocumentation states the correct data types.
Additional InformationAdditionally, the documentation explicitly defines "Integers: JavaScript numbers restricted to integers." But Timestamp and RelativeTime are *not* decumented using Interger.
TagsNo tags attached.

Activities

Christian Grothoff

2025-11-08 08:18

manager   ~0026346

9d62ae91..98080756 replaces all occurrences of "number" with "Integer", which is what was meant :-).
Thanks for reporting, good catch!

Issue History

Date Modified Username Field Change
2025-11-07 16:21 htgoebel New Issue
2025-11-08 08:18 Christian Grothoff Note Added: 0026346
2025-11-08 08:18 Christian Grothoff Assigned To => Christian Grothoff
2025-11-08 08:18 Christian Grothoff Status new => assigned
2025-11-08 08:18 Christian Grothoff Status assigned => resolved
2025-11-08 08:18 Christian Grothoff Resolution open => fixed
2025-11-08 08:18 Christian Grothoff Fixed in Version => 1.2
2025-11-08 08:19 Christian Grothoff Product Version => git (master)
2025-11-08 08:19 Christian Grothoff Target Version => 1.2