Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Harrison committed Jun 7, 2024
2 parents acc7cac + 6a444d1 commit 8275a7b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion specification/schemas/enums/ErrorInvalidValue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ enum:
- CM_TOO_FEW_ITEMS
- CM_ODS_CODE_REQUIRED
- CM_CANNOT_SET_ODS_CODE
example: CM_MISSING_VALUE
example: CM_INVALID_NHS_NUMBER
title: Enum_Error_InvalidValue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ properties:
code:
$ref: ../../../enums/ErrorInvalidValue.yaml
links:
$ref: ../../../types/LinksError.yaml
$ref: ../../../types/LinksErrorNHSNumber.yaml
status:
type: string
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ properties:
code:
$ref: ../../../enums/ErrorInvalidValue.yaml
links:
$ref: ../../../types/LinksError.yaml
$ref: ../../../types/LinksErrorNHSNumber.yaml
status:
type: string
enum:
Expand Down
3 changes: 1 addition & 2 deletions specification/schemas/types/LinksError.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ additionalProperties: false
properties:
about:
type: string
enum:
- 'https://digital.nhs.uk/developer/api-catalogue/communications-manager'
format: uri
example: 'https://digital.nhs.uk/developer/api-catalogue/communications-manager'
description: 'https://digital.nhs.uk/developer/api-catalogue/communications-manager'
minProperties: 1
14 changes: 14 additions & 0 deletions specification/schemas/types/LinksErrorNHSNumber.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type: object
additionalProperties: false
properties:
about:
type: string
format: uri
example: 'https://digital.nhs.uk/developer/api-catalogue/communications-manager'
description: 'https://digital.nhs.uk/developer/api-catalogue/communications-manager'
nhsNumbers:
type: string
format: uri
example: 'https://www.datadictionary.nhs.uk/attributes/nhs_number.html'
description: https://www.datadictionary.nhs.uk/attributes/nhs_number.html This link is only provided in the instance of a "CM_INVALID_NHS_NUMBER" error.
minProperties: 1

0 comments on commit 8275a7b

Please sign in to comment.