Skip to content

Commit b7a4d2b

Browse files
author
Peter Spiess-Knafl
committed
Bugfix in specification parser, which caused stubgenerator to only build positional parameter procedures
1 parent 19b1d22 commit b7a4d2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jsonrpccpp/common/specificationparser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ void SpecificationParser::GetProcedure (Json::Value &si
6262

6363
if (signature[KEY_SPEC_PROCEDURE_PARAMETERS].isArray())
6464
{
65+
result.SetParameterDeclarationType(PARAMS_BY_POSITION);
6566
GetPositionalParameters(signature, result);
6667
}
6768
else if (signature[KEY_SPEC_PROCEDURE_PARAMETERS].isObject())
6869
{
70+
result.SetParameterDeclarationType(PARAMS_BY_NAME);
6971
GetNamedParameters(signature, result);
7072
}
7173
}

0 commit comments

Comments
 (0)