Skip to content

Commit

Permalink
EM-1528: fix an schema format - 'items' cannot be a list.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmarston-nhs committed Dec 23, 2024
1 parent fc9a303 commit 24ed8ad
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 45 deletions.
56 changes: 27 additions & 29 deletions signal-schemas/fhirsignal.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,36 +202,34 @@
]
}
],
"items": [
{
"type": "object",
"description": "Resource on an API of the publishing service to retrieve full details of the event (or subject record)",
"properties": {
"name": {
"const": "focus"
},
"valueReference": {
"type": "object",
"properties": {
"reference": {
"type": "string",
"format": "uri",
"examples": [
"https://api.service.nhs.uk/register-with-a-gp-surgery/applications/bd468854-4cd5-4e57-9dde-e5a482d50605"
]
}
},
"required": [
"reference"
]
}
"items": {
"type": "object",
"description": "Resource on an API of the publishing service to retrieve full details of the event (or subject record)",
"properties": {
"name": {
"const": "focus"
},
"required": [
"name",
"valueReference"
]
}
]
"valueReference": {
"type": "object",
"properties": {
"reference": {
"type": "string",
"format": "uri",
"examples": [
"https://api.service.nhs.uk/register-with-a-gp-surgery/applications/bd468854-4cd5-4e57-9dde-e5a482d50605"
]
}
},
"required": [
"reference"
]
}
},
"required": [
"name",
"valueReference"
]
}
}
},
"required": [
Expand Down
32 changes: 16 additions & 16 deletions signal-schemas/fhirsignal.schema.json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,24 +141,24 @@ $defs:
- name
- valueInstant
items:
- type: object
description: Resource on an API of the publishing service to retrieve full details of the event (or subject record)
type: object
description: Resource on an API of the publishing service to retrieve full details of the event (or subject record)
properties:
name:
const: focus
valueReference:
type: object
properties:
name:
const: focus
valueReference:
type: object
properties:
reference:
type: string
format: uri
examples:
- 'https://api.service.nhs.uk/register-with-a-gp-surgery/applications/bd468854-4cd5-4e57-9dde-e5a482d50605'
required:
- reference
reference:
type: string
format: uri
examples:
- 'https://api.service.nhs.uk/register-with-a-gp-surgery/applications/bd468854-4cd5-4e57-9dde-e5a482d50605'
required:
- name
- valueReference
- reference
required:
- name
- valueReference
required:
- name
- part
Expand Down

0 comments on commit 24ed8ad

Please sign in to comment.