-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xml improved 2 #94
Xml improved 2 #94
Conversation
Fix notification generation and remove allow_nodata parameter Fix detection of no text for empty type
Simplify XML handling and cleanup notification usecase
A documentation test fails for
|
Creating
and running Annotating
and running again produces this output:
Running the exact same code on
Notice the difference? OLD: @HRogge: thoughts? |
The name of the orphan instance is qualified with the module name ( |
I tried to fix this issue with These problems boil down to the fact that XML representation in RESTCONF requires an encapsulating element and instances of schema nodes are chosen rather arbitrarily for this purpose: it is an I also tried to make Everything would be quite easy if RESTCONF provided a neutral data encapsulation container such as :-\ |
Thank you for taking a look! Yes, too late to fix RESTCONF (unless it's in restconf-next) . [file an issue there?] Maybe @HRogge has an idea, since he submerged himself in all this before? Another fix, though much more invasive, is to modify Yangson to have each object representation to include its own envelop, like RESTCONF. That is, GET/PUT/etc. operations on resource "foo" always include envelop |
Hi Lada,
master
as well, so diffs should be small (and no Python 3.6 breaks)Please merge and publish update.
Thanks,
Kent