ho voluto rappresentare una struttura ad albero standard nella parsimonia apache, ma ho incontrato seguente problema:parsimonia apache non riesce generando le strutture ricorsive
[ERROR:/path_to_project/thrift/service.thrift:31] (last token was 'TCategoryTree')
Type "TCategoryTree" has not been defined.
Queste sono le mie strutture di risparmio:
struct TCategory {
1: required string name
}
struct TCategoryTree {
1: required TCategory element,
2: optional list<TCategoryTree> children
}
Linea 31 è 2: optional list<TCategoryTree> children
, dove definisco un campo che ha lo stesso tipo che sto definendo in questo momento.
Potrebbe essere che l'apache parsimonia non supporta le strutture ricorsive o sto facendo qualche tipo di errore qui?
edit: sto usando la versione 0.9.0