Skip to content

Commit

Permalink
fix: decrease minItems of fhirBundle.entry (#31)
Browse files Browse the repository at this point in the history
* fix: reduce minItems to 4

* fix: update tests
  • Loading branch information
HJunyuan authored Jun 28, 2021
1 parent 3486957 commit 2decf3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sg/gov/moh/pdt-healthcert/1.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
"entry": {
"description": "An entry in a bundle resource - will contain information about Patient, Speciment, Observation or Organization.",
"type": "array",
"minItems": 5,
"minItems": 4,
"items": {
"oneOf": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/sg/gov/moh/pdt-healthcert/1.0/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ describe("schema", () => {
Object {
"dataPath": ".fhirBundle.entry",
"keyword": "minItems",
"message": "should NOT have fewer than 5 items",
"message": "should NOT have fewer than 4 items",
"params": Object {
"limit": 5,
"limit": 4,
},
"schemaPath": "#/properties/fhirBundle/properties/entry/minItems",
},
Expand Down

0 comments on commit 2decf3e

Please sign in to comment.