[YANGTOOLS-441] Yang Data Codec Gson: failed to lookup prefix when serializing identityref type Created: 08/Apr/15  Updated: 10/Apr/22  Resolved: 09/Apr/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Jan Hajnar Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2960

 Description   

Identityref values fail to deserialize if only name of identity is provided without prefix.

example of json restcong input that fails (toaster sample):
{
"input" :

{ "toasterDoneness" : "10", "toasterToastType":"wheat-bread" //this value fails to deserialize }

}

According to specification we should be able to deserialize this value without prefix, if identity that is referenced is defined in the same module as other data. This input works in Helium. In Lithium it only works if payload is specified in XML.



 Comments   
Comment by Jan Hajnar [ 08/Apr/15 ]

patch:
https://git.opendaylight.org/gerrit/#/c/17912/

Generated at Wed Feb 07 20:53:15 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.