-
Notifications
You must be signed in to change notification settings - Fork 74
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
cannot decode json blob in python without encoding it first #1089
Labels
Comments
Please consider this piece of code before the actual decode as a workaround:
|
ygorelik
added a commit
to ygorelik/ydk-gen
that referenced
this issue
Sep 7, 2023
Built test case in C++ and reproduced the issue:
Found and fixed the bug. After the fix applied getting expected result:
Got the same result in Python API with original script (slightly modified):
Result:
Hence closing the issue. |
ygorelik
changed the title
cannot decode json blob in python without encoding it first..
cannot decode json blob in python without encoding it first
Sep 7, 2023
ygorelik
pushed a commit
to ygorelik/ydk-gen
that referenced
this issue
Sep 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
I should be able to decode a json blob with an access-list
Current Behavior
I can only decode the test_test access list json blob, if I have "encoded" an access-list before with the same name,
Steps to Reproduce
json = codec.encode(codec_provider, native)
and run it again, now it fails..Your Script
Logs
Enable logging and post the logs below
(note that the link does not work!) See #1088
logs are attached as files..
ydk.log
ydk-ok.log
System Information
The text was updated successfully, but these errors were encountered: