Skip to content

Commit 68fbc75

Browse files
committed
release/2024-11-08 Update MhsDevice swagger
1 parent 4ceae34 commit 68fbc75

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

infrastructure/swagger/07_components--schemas--domain.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ components:
190190
deleted_on:
191191
type: string
192192
nullable: true
193+
keys:
194+
type: array
195+
items:
196+
type: object
197+
properties:
198+
key_type:
199+
type: string
200+
key_value:
201+
type: string
193202
questionnaire_responses:
194203
type: object
195204

infrastructure/swagger/12_components--responses.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,19 @@ components:
4242
errors:
4343
- code: "MISSING_VALUE"
4444
message: "<MISSING_FIELD>: field required"
45+
- code: "MISSING_VALUE"
46+
message: "Failed to validate data against '<QUESTIONNAIRE>': '<MISSING_FIELD>' is a required property"
4547
ValidationError:
4648
value:
4749
errors:
4850
- code: "VALIDATION_ERROR"
4951
message: "Item already exists"
52+
- code: "VALIDATION_ERROR"
53+
message: "Expected only one response for the '<QUESTIONNAIRE _NAME>' questionnaire"
54+
- code: "VALIDATION_ERROR"
55+
message: "Require a 'spine_mhs' questionnaire response to create a MHS Device"
56+
- code: "VALIDATION_ERROR"
57+
message: "Not an EPR Product: Cannot create MHS device for product without exactly one Party Key"
5058
SdsSearchDeviceBadRequest:
5159
description: searchSDSDevice Bad request
5260
content:

0 commit comments

Comments
 (0)