Skip to content

v3.0.19

Choose a tag to compare

@mattdean3-nhs mattdean3-nhs released this 14 Feb 11:08
· 470 commits to develop since this release
86d8ad1

What's Changed

API Changes

NRL-786 - Respond with error on extra fields in DocumentReference by @eesa456 in #781

A 400 response is returned when an invalid field is added to the DocumentReference or placed in a location where it does not belong.

Example 1 - .context contains an incorrectly placed size field.

"context": {
  "size": "1000",
  "period": {
    "start": "2022-02-28T12:04:38.3143068+00:00",
    "end": "2023-08-15T11:12:53Z"
  },
....

Example 2 - .content[].attachment contains an invalid field called extrafield.

"content": [
  {
    "attachment": {
      "contentType": "application/pdf",
      "url": "ssp://testurl",
      "creation": "2024-04-23T03:31:12+01:00",
      "size":"1000",
      "extrafield": "text"
    },
....

Other Changes

Full Changelog: v3.0.18...v3.0.19