oscal-rest icon indicating copy to clipboard operation
oscal-rest copied to clipboard

Document IDs in List Incorrect

Open brian-ruf-ezd opened this issue 1 year ago • 2 comments
trafficstars

For any GET /[model-name] that provides a list of OSCAL content, the JSON list includes a document-ids field. That field incorrectly has two layers of document-ids. It should only have one.

For example, the list OpenAPI spec shows:

        "document-ids": [
          {
            "document-id": {
              "scheme": "BoB0wJwhtaQULoNYt0VJMJVw1AX7SkuNQZTOOGcTbVyrWzCOaJleyp9+oDZ:%RRx/#h8mA4aFnX:3S&n1yWZ34Mv};&zXsfVEL]C\\uMJId~zw>ncOdr$} -B%NN@W+88pM\"#a",
              "identifier": "string"
            }
          }
        ]

It should show:

        "document-ids": [
          {
              "scheme": "BoB0wJwhtaQULoNYt0VJMJVw1AX7SkuNQZTOOGcTbVyrWzCOaJleyp9+oDZ:%RRx/#h8mA4aFnX:3S&n1yWZ34Mv};&zXsfVEL]C\\uMJId~zw>ncOdr$} -B%NN@W+88pM\"#a",
              "identifier": "string"
          }
        ]

brian-ruf-ezd avatar Jan 31 '24 05:01 brian-ruf-ezd

May be a leftover artifact form when we were allowing both XML and JSON returns. Now that we are only offering JSON returns, this should be flattened.

brian-ruf-ezd avatar Mar 22 '24 14:03 brian-ruf-ezd

Made good progress on the collection of issues. This one will be addressed in sprint 68.

brian-ruf-ezd avatar Apr 19 '24 13:04 brian-ruf-ezd