Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-441

Yang Data Codec Gson: failed to lookup prefix when serializing identityref type

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            jhajnar@cisco.com Jan Hajnar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: