[NETCONF-215] API Explorer Model Schema Data Type 'Click to set as parameter value' is empty for YANG RPC POST to /operations/ Created: 02/Jun/16 Updated: 15/Mar/19 Resolved: 22/Sep/16 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Michael Vorburger | Assignee: | Miroslav Kovac |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 5998 | ||||||||
| Description |
|
For a YANG RPC like netconf POST to /operations/toaster:make-toast, that Data Type Model Schema for input is { } even though it should be something like {"input" : { "toaster:toasterDoneness" : "10", "toaster:toasterToastType":"wheat-bread" }} it seems some mapping into Swagger's JSON isn't generated quite right there. |
| Comments |
| Comment by Miroslav Kovac [ 14/Sep/16 ] |
| Comment by Michael Vorburger [ 15/Sep/16 ] |
|
I've just attempted to manually test c/45580/2, and seen that instead of the original: { } it's now a bit better, but still not really working out-of-the-box: { This is still wrong, as from what little I understand it should rather be something like: { } Note the main diff is the missing "input" kind of wrap around it. (Putting valid example values, like "1" instead of "integer" and "wheat-bread" instead of {} would be cool too I guess, but I can open a separate issue about that, if you prefer.) PS: The c/45580 also doesn't include any non-regression test (but that's not really my call). |
| Comment by Miroslav Kovac [ 16/Sep/16 ] |
|
(In reply to Michael Vorburger from comment #2) > } Thank you for reply As for putting valid example values, separate issue would be better, cause it doesn`t have much to do with this and it should also be in config requests. And that would be an improvement I guess and not a bug. |
| Comment by Michael Vorburger [ 16/Sep/16 ] |
|
> for putting valid example values, separate issue would be better => |