Skip to content

Commit

Permalink
Fix "msg" field name
Browse files Browse the repository at this point in the history
  • Loading branch information
CBonnell committed Nov 21, 2023
1 parent 6fd8dd1 commit 29f1635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkilint/rest/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ def create_unprocessable_entity_error_detail(message: str, error_type: str = 'va
{
'loc': ['body'],
'type': error_type,
'message': message,
'msg': message,
}
]
2 changes: 1 addition & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _assert_validationerror_list_present(resp):
detail_0 = detail_list[0]
assert detail_0['loc'] == ['body']
assert detail_0['type'] == 'value_error'
assert 'message' in detail_0
assert 'msg' in detail_0


def test_groups(client):
Expand Down

0 comments on commit 29f1635

Please sign in to comment.