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

Large number types are not JSON-serialized as strings

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 3.0.6, 2.1.13, 4.0.2
    • None
    • None

    Description

      RFC 7951 is quite explicit [0] on the requirement for int64, uint64 and decimal64 types to get serialized as JSON string values (so inside quotes, unlike other numbers).

      Restconf outputs numeric (as opposed to string) values for int64,  uint64 and decimal64 , so it is not RFC compliant in this sense.

      [0] https://tools.ietf.org/html/rfc7951#section-6.1

      Attachments

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

        Activity

          People

            mario.abraham Mario Abraham
            mario.abraham Mario Abraham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: