View Issue Details

IDProjectCategoryView StatusLast Update
0009594Talerdocumentationpublic2025-05-10 02:10
Reporterreynir Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritylowSeveritytextReproducibilityN/A
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version1.0Fixed in Version1.0 
Summary0009594: No declared conventions for specifying JSON objects
DescriptionFairly early on in the documentation (1.2.1 under Conventions for Taler RESTful APIs) there is a specification of the shape of a ErrorDetail JSON object:
    https://docs.taler.net/core/api-common.html#tsref-type-ErrorDetail

If you use an existing schema language it would be great to mention that somewhere early (for example in 1.2). Otherwise, a brief introduction would be nice. While I think it is mostly intuitive I can think of some easy misinterpretations. For example, the member »hint?: string;« has a question mark at the end. My guess is this means the member may be absent from the object. However, another possible interpretation is the value is null if not present. Finally, { "hint?": "this is fine" } is a perfectly valid JSON object.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Stefan

2025-03-06 11:30

reporter   ~0024167

Hi Devan, I can imagine that this ticket is something for your plate as you know much more than me about the JSON terminology and conventions. And this is a post-1.0 ticket, so no hurry. THX for looking into it.

reynir

2025-03-06 14:49

reporter   ~0024170

After some searching it looks a lot like TypeScript.

Christian Grothoff

2025-03-07 01:58

manager   ~0024173

It's indeed all TypeScript based. We should probably find a nice place to say that.

dvn

2025-03-10 13:03

reporter   ~0024174

I'm not particularly familiar with this so I'll let someone else who is pick this one up.

Christian Grothoff

2025-04-18 12:59

manager   ~0024605

Fixed in e9fce14f..2fd3f15b, added sentence about using TypeScript in section 1.1.

Issue History

Date ModifiedUsernameFieldChange
2025-03-05 10:08reynirNew Issue
2025-03-05 10:08reynirStatusnew => assigned
2025-03-05 10:08reynirAssigned To => Stefan
2025-03-06 11:30StefanNote Added: 0024167
2025-03-06 11:30StefanAssigned ToStefan => dvn
2025-03-06 14:49reynirNote Added: 0024170
2025-03-07 01:58Christian GrothoffPrioritynormal => low
2025-03-07 01:58Christian GrothoffSeverityminor => text
2025-03-07 01:58Christian GrothoffTarget Version => post-1.0
2025-03-07 01:58Christian GrothoffNote Added: 0024173
2025-03-10 13:01dvnAssigned Todvn =>
2025-03-10 13:03dvnNote Added: 0024174
2025-04-17 22:14Christian GrothoffAssigned To => Christian Grothoff
2025-04-18 12:59Christian GrothoffStatusassigned => informing
2025-04-18 12:59Christian GrothoffResolutionopen => fixed
2025-04-18 12:59Christian GrothoffFixed in Version => 1.0
2025-04-18 12:59Christian GrothoffNote Added: 0024605
2025-05-08 13:32Christian GrothoffProduct Version => git (master)
2025-05-08 13:32Christian GrothoffTarget Versionpost-1.0 => 1.0
2025-05-10 02:10Christian GrothoffStatusinforming => closed