Skip to content

Commit 1754771

Browse files
committed
NRL-1202 standardise message
1 parent 4abb3e3 commit 1754771

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/consumer/searchPostDocumentReference/search_post_document_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def handler(
5757
pointer_types=metadata.pointer_types,
5858
)
5959
return SpineErrorResponse.INVALID_CODE_SYSTEM(
60-
diagnostics="Invalid type (The provided type does not match the allowed types for this organisation)",
60+
diagnostics="The provided type does not match the allowed types for this organisation",
6161
expression="type",
6262
)
6363

api/consumer/searchPostDocumentReference/tests/test_search_post_document_reference_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def test_search_post_document_reference_invalid_type(
424424
}
425425
]
426426
},
427-
"diagnostics": "Invalid type (The provided type does not match the allowed types for this organisation)",
427+
"diagnostics": "The provided type does not match the allowed types for this organisation",
428428
"expression": ["type"],
429429
}
430430
],

0 commit comments

Comments
 (0)