Skip to content

Commit c15b9c8

Browse files
authored
Marks required properties as required (#233)
* Marks required properties as required * Bumps api version * Merges incoming changes
1 parent dbe5750 commit c15b9c8

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

ReleaseNotes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
### changed
88

99
- changed FHIR status inactive to "off" to be FHIR compliant
10+
- all properties required by the Testsuite marked as required in TiMessengerTestTreiber.yaml
1011

1112
## Hotfix 1.1.1-7
1213

src/openapi/TiMessengerTestTreiber.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.3
22
info:
33
title: TiMessengerTestDriver
44
description: REST interface to automate the test of a TI-Messenger client implementation.
5-
version: 0.9.6
5+
version: 0.9.7
66
contact:
77
name: gematik GmbH
88
email: software-development@gematik.de
@@ -1812,6 +1812,7 @@ components:
18121812
- testDriverVersion
18131813
- homeserver
18141814
- contact
1815+
- description
18151816
readOnly: true
18161817
type: object
18171818
properties:
@@ -2162,6 +2163,9 @@ components:
21622163
description: "A message and its metadata"
21632164
readOnly: true
21642165
type: object
2166+
required:
2167+
- author
2168+
- MessageContent
21652169
properties:
21662170
messageId:
21672171
type: string
@@ -2259,6 +2263,9 @@ components:
22592263

22602264
Room:
22612265
description: "Information about a room and its members"
2266+
required:
2267+
- RoomMembers
2268+
- RoomProperties
22622269
allOf:
22632270
- $ref: "#/components/schemas/RoomProperties"
22642271
- $ref: "#/components/schemas/RoomMembers"
@@ -2268,6 +2275,8 @@ components:
22682275
type: object
22692276
required:
22702277
- name
2278+
- roomId
2279+
- roomAccess
22712280
properties:
22722281
name:
22732282
type: string
@@ -2302,6 +2311,9 @@ components:
23022311
RoomMember:
23032312
description: ""
23042313
type: object
2314+
required:
2315+
- mxid
2316+
- membershipState
23052317
properties:
23062318
mxid:
23072319
description: "MxId as identifier, refers to an existing account"
@@ -2313,6 +2325,8 @@ components:
23132325
RoomMembers:
23142326
description: "List of room associated accounts and their states"
23152327
type: object
2328+
required:
2329+
- members
23162330
properties:
23172331
members:
23182332
type: array
@@ -2405,6 +2419,9 @@ components:
24052419
description: "The result for a search request for on homeserver"
24062420
readOnly: true
24072421
type: object
2422+
required:
2423+
- totalSearchResults
2424+
- searchResults
24082425
properties:
24092426
totalSearchResults:
24102427
description: "Total result count for this search. The number of entries in searchResults may be less or equal this number."
@@ -2420,6 +2437,8 @@ components:
24202437
description: "A flat description of an endpoint with belonging healthcare-service and organization"
24212438
readOnly: true
24222439
type: object
2440+
required:
2441+
- mxId
24232442
properties:
24242443
mxId:
24252444
description: "The Matrix-ID of an account"
@@ -2433,6 +2452,9 @@ components:
24332452
FhirSearchResult:
24342453
description: "A FHIR Bundle containing search results"
24352454
type: object
2455+
required:
2456+
- total
2457+
- entry
24362458
properties:
24372459
resourceType:
24382460
type: string
@@ -2506,6 +2528,8 @@ components:
25062528
FhirEntry:
25072529
description: "FhirSearchEntry"
25082530
type: object
2531+
required:
2532+
- resource
25092533
properties:
25102534
fullUrl:
25112535
type: string
@@ -2530,6 +2554,7 @@ components:
25302554
Practitioner: "#/components/schemas/FhirPractitioner"
25312555
required:
25322556
- resourceType
2557+
- id
25332558
properties:
25342559
resourceType:
25352560
$ref: "#/components/schemas/FhirResourceType"
@@ -2620,6 +2645,8 @@ components:
26202645
allOf:
26212646
- $ref: "#/components/schemas/FhirBaseResource"
26222647
type: object
2648+
required:
2649+
- practitioner
26232650
properties:
26242651
practitioner:
26252652
$ref: "#/components/schemas/FhirReference"
@@ -2648,6 +2675,9 @@ components:
26482675
allOf:
26492676
- $ref: "#/components/schemas/FhirBaseResource"
26502677
type: object
2678+
required:
2679+
- name
2680+
- address
26512681
properties:
26522682
name:
26532683
type: string
@@ -2709,7 +2739,6 @@ components:
27092739
description: "Start time"
27102740
example: "18:00:00"
27112741

2712-
27132742
FhirAddress:
27142743
type: object
27152744
description: "Possible address"
@@ -2760,6 +2789,8 @@ components:
27602789
FhirReference:
27612790
description: "Reference to another FhirRessource"
27622791
type: object
2792+
required:
2793+
- reference
27632794
properties:
27642795
reference:
27652796
type: string
@@ -2854,6 +2885,8 @@ components:
28542885
FhirName:
28552886
type: object
28562887
description: "Personal data of practitioner"
2888+
required:
2889+
- text
28572890
properties:
28582891
use:
28592892
example: "usual"

0 commit comments

Comments
 (0)