Skip to content

Commit

Permalink
[#ICOM-706] third party message validation (#1079)
Browse files Browse the repository at this point in the history
Co-authored-by: garma00 <giovanniarmaleo00@gmail.com>
  • Loading branch information
acuiuli and Garma00 authored Dec 14, 2023
1 parent 17fe5e9 commit 7bcf26d
Show file tree
Hide file tree
Showing 8 changed files with 526 additions and 133 deletions.
219 changes: 116 additions & 103 deletions api_backend.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions openapi/generated/api_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1906,6 +1906,9 @@ definitions:
has_attachments:
type: boolean
default: false
has_remote_content:
type: boolean
default: false
has_precondition:
type: string
x-extensible-enum:
Expand Down
3 changes: 3 additions & 0 deletions openapi/generated/api_notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ definitions:
has_attachments:
type: boolean
default: false
has_remote_content:
type: boolean
default: false
has_precondition:
type: string
x-extensible-enum:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@azure/storage-queue": "^12.0.0",
"@pagopa/io-functions-app-sdk": "x",
"@pagopa/io-functions-cgn-sdk": "x",
"@pagopa/io-functions-commons": "^28.8.0",
"@pagopa/io-functions-commons": "28.9.0",
"@pagopa/io-functions-eucovidcerts-sdk": "x",
"@pagopa/io-spid-commons": "^13.3.0",
"@pagopa/ts-commons": "^12.3.0",
Expand Down
2 changes: 2 additions & 0 deletions src/controllers/messagesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import * as express from "express";
import {
IResponseErrorBadGateway,
IResponseErrorInternal,
IResponseErrorNotFound,
IResponseErrorServiceUnavailable,
Expand Down Expand Up @@ -255,6 +256,7 @@ export default class MessagesController {
| IResponseErrorForbiddenNotAuthorized
| IResponseErrorNotFound
| IResponseErrorTooManyRequests
| IResponseErrorBadGateway
| IResponseSuccessJson<ThirdPartyMessageWithContent>
> =>
withUserFromRequest(req, async (user) =>
Expand Down
Loading

0 comments on commit 7bcf26d

Please sign in to comment.