[Invalid JSON if GET /operations via RESTCONF #82](https://github.com/clicon/clixon/issues/82), thanks achernavin22
This commit is contained in:
parent
9b9b53c4ee
commit
6bfa510ea3
3 changed files with 3 additions and 2 deletions
|
|
@ -115,6 +115,7 @@
|
||||||
* Added libgen.h for baseline()
|
* Added libgen.h for baseline()
|
||||||
|
|
||||||
### Corrected Bugs
|
### Corrected Bugs
|
||||||
|
* [Invalid JSON if GET /operations via RESTCONF #82](https://github.com/clicon/clixon/issues/82), thanks achernavin22
|
||||||
* List ordering bug - lists with ints as keys behaved wrongly and slow.
|
* List ordering bug - lists with ints as keys behaved wrongly and slow.
|
||||||
* NACM read default rule did not work properly if nacm was enabled AND no groups were defined
|
* NACM read default rule did not work properly if nacm was enabled AND no groups were defined
|
||||||
* Re-inserted `cli_output_reset` for what was erroneuos thought to be an obsolete function
|
* Re-inserted `cli_output_reset` for what was erroneuos thought to be an obsolete function
|
||||||
|
|
|
||||||
|
|
@ -1164,7 +1164,7 @@ api_operations_get(clicon_handle h,
|
||||||
if (use_xml)
|
if (use_xml)
|
||||||
cprintf(cbx, "</operations>");
|
cprintf(cbx, "</operations>");
|
||||||
else
|
else
|
||||||
cprintf(cbx, "}");
|
cprintf(cbx, "}}");
|
||||||
FCGX_SetExitStatus(200, r->out); /* OK */
|
FCGX_SetExitStatus(200, r->out); /* OK */
|
||||||
FCGX_FPrintF(r->out, "Content-Type: application/yang-data+%s\r\n", use_xml?"xml":"json");
|
FCGX_FPrintF(r->out, "Content-Type: application/yang-data+%s\r\n", use_xml?"xml":"json");
|
||||||
FCGX_FPrintF(r->out, "\r\n");
|
FCGX_FPrintF(r->out, "\r\n");
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ expecteq "$(curl -s -H 'Accept: application/yang-data+xml' -G http://localhost/r
|
||||||
|
|
||||||
# Should be alphabetically ordered
|
# Should be alphabetically ordered
|
||||||
new "restconf get restconf/operations. RFC8040 3.3.2 (json)"
|
new "restconf get restconf/operations. RFC8040 3.3.2 (json)"
|
||||||
expecteq "$(curl -sG http://localhost/restconf/operations)" 0 '{"operations": {"clixon-example:client-rpc": null,"clixon-example:empty": null,"clixon-example:optional": null,"clixon-example:example": null,"clixon-lib:debug": null}
|
expecteq "$(curl -sG http://localhost/restconf/operations)" 0 '{"operations": {"clixon-example:client-rpc": null,"clixon-example:empty": null,"clixon-example:optional": null,"clixon-example:example": null,"clixon-lib:debug": null}}
|
||||||
'
|
'
|
||||||
|
|
||||||
new "restconf get restconf/operations. RFC8040 3.3.2 (xml)"
|
new "restconf get restconf/operations. RFC8040 3.3.2 (xml)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue