Merge branch 'bug/fix-api-doc-generation-for-map' into 'develop'
Fix API docs generation for map<> and flat_map<> See merge request PBSA/peerplays!161
This commit is contained in:
commit
1b1df25023
1 changed files with 3 additions and 2 deletions
|
|
@ -131,7 +131,8 @@ sub explainCType
|
||||||
$type =~ s/\b(u?int(8|16|32|64)_t|int|unsigned)\b/integer/; # spare the user from width and signedness
|
$type =~ s/\b(u?int(8|16|32|64)_t|int|unsigned)\b/integer/; # spare the user from width and signedness
|
||||||
$type =~ s/\bbool\b/boolean/; # they're not C++ people
|
$type =~ s/\bbool\b/boolean/; # they're not C++ people
|
||||||
$type =~ s/^(?:vector|set|flat_set)<(.+)>$/[$1, ...]/; # represent as JSon-like array notation
|
$type =~ s/^(?:vector|set|flat_set)<(.+)>$/[$1, ...]/; # represent as JSon-like array notation
|
||||||
$type =~ s/^(?:map|flat_map)<(.+)\s*,\s*(.+)>$/{$1 => $2, ...}/; # same for map
|
$type =~ s/^map<(.+)\s*,\s*(.+)>$/{$1: $2, ...}/; # same for map
|
||||||
|
$type =~ s/^flat_map<(.+)\s*,\s*(.+)>$/[[$1, $2], ...]/; # same for flat_map
|
||||||
$type =~ s/^time_point_sec$/time, e.g. 2021-12-25T14:30:05/;
|
$type =~ s/^time_point_sec$/time, e.g. 2021-12-25T14:30:05/;
|
||||||
return $type;
|
return $type;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue