[YANGTOOLS-249] Yangtools Mangling REST names Created: 05/Aug/14 Updated: 10/Apr/22 Resolved: 06/Aug/14 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Reinaldo Penno | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Attachments: |
|
| External issue ID: | 1483 |
| Description |
|
I have the following model container CSEBase { I noticed that the container name "CSEBaseAttributes" was changed to "Attributes". I was trying a JSON PUT for quite some time and RESTconf API explorer showed the actual URI { } Without a tool like RESTconf API explorer I would never know that this mangling happened and to what name it was changed exactly. I checked RESTconf draft and the name CSEBaseAttributes is allowed. Maybe having the name prefix as the module is the problem. |
| Comments |
| Comment by Ladislav Borak [ 05/Aug/14 ] |
|
I tested behavior of changing container name, with model included as attachment and all works fine. Tested with current controller in debug mode, from postman and also with RESTConf API Explorer. All operations works correctly and containers name stayed the same. |
| Comment by Ladislav Borak [ 05/Aug/14 ] |
|
Attachment mod-test-cont.yang has been added with description: test yang file |
| Comment by Reinaldo Penno [ 05/Aug/14 ] |
|
I'm attaching the Yang model that caused the problem. |
| Comment by Reinaldo Penno [ 05/Aug/14 ] |
|
Attachment oneM2Mv2.yang has been added with description: Yang model that caused the problem |
| Comment by Ladislav Borak [ 05/Aug/14 ] |
|
Your included yang file is not valid. At first sight I found out some problems: 1) number of left and right braces is not same (line 332) and more. Please use valid yang file and try to test again. |