Skip to content

DLS-6064_4 include description on error response model #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions resources/public/api/conf/2.0/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,15 @@ components:
title: errorResponse
required:
- code
- message
type: object
properties:
code:
type: string
description: The error code
message:
type: string
description: The error message
BankDetails:
title: BankDetails
required:
Expand Down Expand Up @@ -801,8 +806,10 @@ components:
properties:
code:
type: string
description: FORBIDDEN
message:
type: string
description: Missing NINO
IndividualsHelpToSaveAccountResponse404:
title: IndividualsHelpToSaveAccountResponse404
required:
Expand All @@ -812,8 +819,10 @@ components:
properties:
code:
type: string
description: NOT FOUND
message:
type: string
description: Account doesn't exist
IndividualsHelpToSaveAccountResponse400:
title: IndividualsHelpToSaveAccountResponse400
required:
Expand All @@ -823,8 +832,10 @@ components:
properties:
code:
type: string
description: BAD_NINO
message:
type: string
description: NINO doesn't match the expected regex
IndividualsHelpToSaveAccountResponse409:
title: IndividualsHelpToSaveAccountResponse409
required:
Expand All @@ -834,8 +845,10 @@ components:
properties:
code:
type: string
description: ACCOUNT_ALREADY_EXISTS
message:
type: string
description: Account create request received for account that already exists
IndividualsHelpToSaveEligibilitySuccessResponse:
title: IndividualsHelpToSaveEligibilitySuccessResponse
required:
Expand Down