From b1461290ff7c7fc021a70978efcea958b765496e Mon Sep 17 00:00:00 2001 From: garma00 Date: Fri, 24 Nov 2023 12:03:16 +0100 Subject: [PATCH 01/12] Add remote content api --- openapi/consumed/api_remote_content.yaml | 524 +++++++++++++++++++++++ 1 file changed, 524 insertions(+) create mode 100644 openapi/consumed/api_remote_content.yaml diff --git a/openapi/consumed/api_remote_content.yaml b/openapi/consumed/api_remote_content.yaml new file mode 100644 index 000000000..74bee5242 --- /dev/null +++ b/openapi/consumed/api_remote_content.yaml @@ -0,0 +1,524 @@ +openapi: 3.0.1 +info: + title: Remote Content - Server implementation + version: 9.7.0 +servers: +- url: / +paths: + /messages/{id}: + get: + summary: Retrieve a Remote Content message + description: |- + Returns the Remote Content message with the provided message ID. + User's fiscal code is required as header parameter. + operationId: getRemoteContentMessageDetails + parameters: + - name: fiscal_code + in: header + description: The fiscal code of the user, all upper case. + required: true + schema: + maxLength: 16 + minLength: 16 + pattern: '[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]' + type: string + - name: id + in: path + description: ID of the Remote Content message. + required: true + schema: + minLength: 1 + type: string + - name: x-pagopa-lollipop-original-method + in: header + description: The method of the endpoint called by IO app + schema: + $ref: "#/components/schemas/LollipopMethod" + - name: x-pagopa-lollipop-original-url + in: header + description: The url of the endpoint called by IO app + schema: + $ref: "#/components/schemas/LollipopOriginalURL" + - name: signature-input + in: header + description: The signature input, needed to verify the `signature` header + schema: + $ref: "#/components/schemas/LollipopSignatureInput" + - name: signature + in: header + description: The signature of the HTTP request, signed by the client with its private key. + schema: + $ref: "#/components/schemas/LollipopSignature" + - name: x-pagopa-lollipop-assertion-ref + in: header + schema: + $ref: "#/components/schemas/LollipopAssertionRef" + - name: x-pagopa-lollipop-assertion-type + in: header + schema: + $ref: "#/components/schemas/AssertionType" + - name: x-pagopa-lollipop-auth-jwt + in: header + schema: + $ref: "#/components/schemas/LollipopJWTAuthorization" + - name: x-pagopa-lollipop-public-key + in: header + schema: + $ref: "#/components/schemas/LollipopPublicKey" + - name: x-pagopa-lollipop-user-id + in: header + schema: + $ref: "#/components/schemas/LollipopUserId" + + + responses: + 200: + description: Found + content: + application/json: + schema: + $ref: '#/components/schemas/RemoteContentMessage' + text/json: + example: "attachments: [], \ncustom_property: \"a custom property\"\ + \ \ncustom_property_2: 42 \n" + 400: + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/ProblemJson' + 401: + description: Unauthorized + content: {} + 403: + description: Forbidden + content: {} + 404: + description: No message found for the provided ID. + content: + application/json: + schema: + $ref: '#/components/schemas/ProblemJson' + 429: + description: Too Many Requests + content: {} + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/ProblemJson' + /messages/{id}/{attachment_url}: + get: + summary: Retrieve an attachment of a Remote Content message + description: |- + Returns the Remote Content message with the provided message ID. + User's fiscal code is required as header parameter. + operationId: getRemoteContentMessageAttachment + parameters: + - name: fiscal_code + in: header + description: The fiscal code of the user, all upper case. + required: true + schema: + maxLength: 16 + minLength: 16 + pattern: '[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]' + type: string + - name: id + in: path + description: ID of the Remote Content message. + required: true + schema: + minLength: 1 + type: string + - name: attachment_url + in: path + required: true + schema: + minLength: 1 + type: string + - name: x-pagopa-lollipop-original-method + in: header + description: The method of the endpoint called by IO app + schema: + $ref: "#/components/schemas/LollipopMethod" + - name: x-pagopa-lollipop-original-url + in: header + description: The url of the endpoint called by IO app + schema: + $ref: "#/components/schemas/LollipopOriginalURL" + - name: signature-input + in: header + description: The signature input, needed to verify the `signature` header + schema: + $ref: "#/components/schemas/LollipopSignatureInput" + - name: signature + in: header + description: The signature of the HTTP request, signed by the client with its private key. + schema: + $ref: "#/components/schemas/LollipopSignature" + - name: x-pagopa-lollipop-assertion-ref + in: header + schema: + $ref: "#/components/schemas/LollipopAssertionRef" + - name: x-pagopa-lollipop-assertion-type + in: header + schema: + $ref: "#/components/schemas/AssertionType" + - name: x-pagopa-lollipop-auth-jwt + in: header + schema: + $ref: "#/components/schemas/LollipopJWTAuthorization" + - name: x-pagopa-lollipop-public-key + in: header + schema: + $ref: "#/components/schemas/LollipopPublicKey" + - name: x-pagopa-lollipop-user-id + in: header + schema: + $ref: "#/components/schemas/LollipopUserId" + + + responses: + 200: + description: Success + content: + application/octet-stream: + schema: + type: string + format: binary + 400: + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/ProblemJson' + 401: + description: Unauthorized + content: {} + 403: + description: Forbidden + content: {} + 404: + description: No message found for the provided ID or no attachment found + at the provided url. + content: + application/json: + schema: + $ref: '#/components/schemas/ProblemJson' + 429: + description: Too Many Requests + content: {} + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/ProblemJson' + 503: + description: Service Unavailable, check the Retry-After header to retry + headers: + Retry-After: + description: The value in seconds after which you can retry + schema: + type: string + example: 120 + content: + application/json: + schema: + $ref: '#/components/schemas/ProblemJson' + /messages/{id}/precondition: + get: + summary: Retrieve the precondition of a Remote Content message + description: |- + Returns the precondition associated to the Remote Content message with the provided message ID. + User's fiscal code is required as header parameter. + operationId: getRemoteContentMessagePrecondition + parameters: + - name: fiscal_code + in: header + description: The fiscal code of the user, all upper case. + required: true + schema: + maxLength: 16 + minLength: 16 + pattern: '[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]' + type: string + - name: id + in: path + description: ID of the Remote Content message. + required: true + schema: + minLength: 1 + type: string + - name: x-pagopa-lollipop-original-method + in: header + description: The method of the endpoint called by IO app + schema: + $ref: "#/components/schemas/LollipopMethod" + - name: x-pagopa-lollipop-original-url + in: header + description: The url of the endpoint called by IO app + schema: + $ref: "#/components/schemas/LollipopOriginalURL" + - name: signature-input + in: header + description: The signature input, needed to verify the `signature` header + schema: + $ref: "#/components/schemas/LollipopSignatureInput" + - name: signature + in: header + description: The signature of the HTTP request, signed by the client with its private key. + schema: + $ref: "#/components/schemas/LollipopSignature" + - name: x-pagopa-lollipop-assertion-ref + in: header + schema: + $ref: "#/components/schemas/LollipopAssertionRef" + - name: x-pagopa-lollipop-assertion-type + in: header + schema: + $ref: "#/components/schemas/AssertionType" + - name: x-pagopa-lollipop-auth-jwt + in: header + schema: + $ref: "#/components/schemas/LollipopJWTAuthorization" + - name: x-pagopa-lollipop-public-key + in: header + schema: + $ref: "#/components/schemas/LollipopPublicKey" + - name: x-pagopa-lollipop-user-id + in: header + schema: + $ref: "#/components/schemas/LollipopUserId" + + + responses: + 200: + description: OK + content: + '*/*': + schema: + $ref: '#/components/schemas/PreconditionContent' + 400: + description: Bad Request + content: + '*/*': + schema: + $ref: '#/components/schemas/ProblemJson' + 401: + description: Unauthorized + content: {} + 403: + description: Forbidden + content: {} + 404: + description: No message or precondition found for the provided ID. + content: + '*/*': + schema: + $ref: '#/components/schemas/ProblemJson' + 429: + description: Too Many Requests + content: {} + 500: + description: Internal Server Error + content: + '*/*': + schema: + $ref: '#/components/schemas/ProblemJson' +components: + schemas: + PreconditionContent: + required: + - markdown + - title + type: object + properties: + title: + type: string + description: The title to be rendered in App + markdown: + type: string + description: The markdown content to be rendered in App + RemoteContentMessage: + type: object + properties: + attachments: + type: array + items: + $ref: '#/components/schemas/RemoteContentAttachment' + details: + type: object + properties: + markdown: + $ref: "#/components/schemas/Markdown" + subject: + $ref: "#/components/schemas/Subject" + required: + - markdown + - subject + additionalProperties: true + RemoteContentAttachment: + required: + - id + - url + type: object + properties: + id: + minLength: 1 + type: string + content_type: + minLength: 1 + type: string + name: + minLength: 1 + type: string + url: + minLength: 1 + type: string + category: + type: string + minLength: 2 + maxLenght: 30 + pattern: '[A-Z0-9_]+' + default: DOCUMENT + ProblemJson: + type: object + properties: + type: + type: string + description: |- + An absolute URI that identifies the problem type. When dereferenced, + it SHOULD provide human-readable documentation for the problem type + (e.g., using HTML). + format: uri + example: https://example.com/problem/constraint-violation + default: about:blank + title: + type: string + description: |- + A short, summary of the problem type. Written in english and readable + for engineers (usually not suited for non technical stakeholders and + not localized); example: Service Unavailable + status: + maximum: 6E+2 + exclusiveMaximum: true + minimum: 1E+2 + type: integer + description: |- + The HTTP status code generated by the origin server for this occurrence + of the problem. + format: int32 + example: 200 + detail: + type: string + description: |- + A human readable explanation specific to this occurrence of the + problem. + example: There was an error processing the request + instance: + type: string + description: |- + An absolute URI that identifies the specific occurrence of the problem. + It may or may not yield further information if dereferenced. + format: uri + LollipopMethod: + type: string + enum: + - GET + - POST + - PUT + - PATCH + - DELETE + LollipopOriginalURL: + type: string + pattern: "^https:\/\/" + LollipopSignatureInput: + type: string + pattern: "^(((sig[0-9]+)=[^,]*?)(, ?)?)+$" + LollipopSignature: + type: string + pattern: "^((sig[0-9]+)=:[A-Za-z0-9+/=]*:(, ?)?)+$" + LollipopAssertionRef: + oneOf: + - $ref: "#/components/schemas/AssertionRefSha256" + - $ref: "#/components/schemas/AssertionRefSha384" + - $ref: "#/components/schemas/AssertionRefSha512" + LollipopUserId: + type: string + maxLength: 16 + minLength: 16 + description: The user's fiscal code, all upper case. + pattern: >- + ^[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]$ + LollipopPublicKey: + type: string + minLength: 1 + description: represents a Base64url encode of a JWK Public Key + LollipopJWTAuthorization: + type: string + minLength: 1 + AssertionType: + type: string + enum: + - SAML + - OIDC + # AssertionRef possible inputs + AssertionRefSha256: + type: string + pattern: ^(sha256-[A-Za-z0-9-_=]{1,44})$ + AssertionRefSha384: + type: string + pattern: ^(sha384-[A-Za-z0-9-_=]{1,66})$ + AssertionRefSha512: + type: string + pattern: ^(sha512-[A-Za-z0-9-_=]{1,88})$ + + Subject: + type: string + description: >- + The (optional) subject of the message - note that only some + notification + + channels support the display of a subject. When a subject is not + provided, + + one gets generated from the client attributes. + minLength: 10 + maxLength: 120 + example: Welcome new user ! + Markdown: + type: string + description: >- + The full version of the message, in plain text or Markdown format. The + content of this field will be delivered to channels that don't have + any + limit in terms of content size (e.g. email, etc...). + minLength: 80 + maxLength: 10000 + example: |- + # This is a markdown header + to show how easily markdown can be converted to **HTML** + Remember: this has to be a long text. + + parameters: + FiscalCode: + name: fiscal_code + in: header + description: The fiscal code of the user, all upper case. + required: true + schema: + maxLength: 16 + minLength: 16 + pattern: '[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]' + type: string + RemoteContentMessageId: + name: id + in: path + description: ID of the Remote Content message. + required: true + schema: + minLength: 1 + type: string From 86a749e905e0a84ed56552319fadbb7afaa80c0a Mon Sep 17 00:00:00 2001 From: garma00 Date: Fri, 24 Nov 2023 12:03:32 +0100 Subject: [PATCH 02/12] Add type generation --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8738a641b..c90c65f02 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "generate:proxy:mitvoucher": "rimraf generated/mitvoucher && gen-api-models --api-spec api_mit_voucher.yaml --out-dir generated/mitvoucher", "generate:proxy:zendesk-models": "rimraf generated/zendesk && gen-api-models --api-spec api_zendesk.yaml --out-dir generated/zendesk", "generate:proxy:third-party-service": "rimraf generated/third-party-service && gen-api-models --api-spec openapi/consumed/api-third-party.yaml --out-dir generated/third-party-service --request-types --response-decoders --client", + "generate:proxy:remote_content_service": "rimraf generated/remote_content_service && gen-api-models --api-spec openapi/consumed/api_remote_content.yaml --out-dir generated/remote_content_service --request-types --response-decoders --client", "generate:proxy:piattaforma-notifiche": "rimraf generated/piattaforma-notifiche && gen-api-models --api-spec openapi/consumed/api-piattaforma-notifiche.yaml --out-dir generated/piattaforma-notifiche --request-types --response-decoders --client", "generate:api:piattaforma-notifiche-courtesy": "rimraf generated/api_piattaforma-notifiche-courtesy && gen-api-models --api-spec api_pn.yaml --out-dir generated/api_piattaforma-notifiche-courtesy", "generate:proxy:piattaforma-notifiche-courtesy": "rimraf generated/piattaforma-notifiche-courtesy && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/pn-user-attributes/13b91a353f6a219c60d5cdadc023cc18c4157554/docs/openapi/pn-address-book-b2b-external-io-v1.yaml --out-dir generated/piattaforma-notifiche-courtesy --request-types --response-decoders --client", From 365221cf0d870d8dc89f752ca4f4280b168f5d4b Mon Sep 17 00:00:00 2001 From: garma00 Date: Mon, 27 Nov 2023 10:51:29 +0100 Subject: [PATCH 03/12] Update io-functions-commons --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c90c65f02..3de70fd27 100644 --- a/package.json +++ b/package.json @@ -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.7.1", + "@pagopa/io-functions-commons": "^28.8.0", "@pagopa/io-functions-eucovidcerts-sdk": "x", "@pagopa/io-spid-commons": "^13.2.2", "@pagopa/ts-commons": "^12.3.0", diff --git a/yarn.lock b/yarn.lock index a079741a3..1ef44a82e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1001,10 +1001,10 @@ fp-ts "^2.10.5" io-ts "^2.2.16" -"@pagopa/io-functions-commons@^28.7.1": - version "28.7.1" - resolved "https://registry.yarnpkg.com/@pagopa/io-functions-commons/-/io-functions-commons-28.7.1.tgz#09a5e703745c6c18c8eb804e4693670b55ccd0f0" - integrity sha512-nEVEA5KQzEtoQS3MK4G7nPfaceIrcVyp6zk9pMkyh2gI3xOtZO2dXKn/liIBRmgummgqpRoxDBLgGwipcfqtcg== +"@pagopa/io-functions-commons@^28.8.0": + version "28.8.0" + resolved "https://registry.yarnpkg.com/@pagopa/io-functions-commons/-/io-functions-commons-28.8.0.tgz#6fb81f4121e835fb647bf1246d5c621589694e54" + integrity sha512-FVD7+LbGLhB8hHvA0m86tnePNetEbSFj+utjB5q1qirDUvPVaAYx/cvzFlId7rb+nl7aPa1zsMqSxEyXrVD/kw== dependencies: "@azure/cosmos" "^3.17.1" "@pagopa/ts-commons" "^11.0.0" From 37619481f326eec7e65821d9f43919213fd3f81f Mon Sep 17 00:00:00 2001 From: garma00 Date: Mon, 27 Nov 2023 10:51:44 +0100 Subject: [PATCH 04/12] Espose RemoteCotnentDetails --- api_backend.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api_backend.yaml b/api_backend.yaml index fba060f22..a3aec63e7 100644 --- a/api_backend.yaml +++ b/api_backend.yaml @@ -1156,6 +1156,8 @@ definitions: $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ThirdPartyAttachment" ThirdPartyMessagePrecondition: $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ThirdPartyMessagePrecondition" + RemoteContentDetails: + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/RemoteContentDetails" LegalMessageEml: $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/LegalMessageEml" LegalMessageCertData: From 9ad5ee01580411047d44ffec0b64d41fe6a84284 Mon Sep 17 00:00:00 2001 From: garma00 Date: Mon, 27 Nov 2023 10:56:14 +0100 Subject: [PATCH 05/12] Use the new RemoteContentDetails in io-functions-commons --- openapi/consumed/api_remote_content.yaml | 36 +----------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/openapi/consumed/api_remote_content.yaml b/openapi/consumed/api_remote_content.yaml index 74bee5242..73e4d9cfa 100644 --- a/openapi/consumed/api_remote_content.yaml +++ b/openapi/consumed/api_remote_content.yaml @@ -351,14 +351,7 @@ components: $ref: '#/components/schemas/RemoteContentAttachment' details: type: object - properties: - markdown: - $ref: "#/components/schemas/Markdown" - subject: - $ref: "#/components/schemas/Subject" - required: - - markdown - - subject + $ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/RemoteContentMessage" additionalProperties: true RemoteContentAttachment: required: @@ -476,33 +469,6 @@ components: type: string pattern: ^(sha512-[A-Za-z0-9-_=]{1,88})$ - Subject: - type: string - description: >- - The (optional) subject of the message - note that only some - notification - - channels support the display of a subject. When a subject is not - provided, - - one gets generated from the client attributes. - minLength: 10 - maxLength: 120 - example: Welcome new user ! - Markdown: - type: string - description: >- - The full version of the message, in plain text or Markdown format. The - content of this field will be delivered to channels that don't have - any - limit in terms of content size (e.g. email, etc...). - minLength: 80 - maxLength: 10000 - example: |- - # This is a markdown header - to show how easily markdown can be converted to **HTML** - Remember: this has to be a long text. - parameters: FiscalCode: name: fiscal_code From 4bfd8e5daf34292ac6d0857c8970d4daba164a8a Mon Sep 17 00:00:00 2001 From: garma00 Date: Mon, 27 Nov 2023 10:56:34 +0100 Subject: [PATCH 06/12] Fix openapi version --- openapi/consumed/api_remote_content.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/consumed/api_remote_content.yaml b/openapi/consumed/api_remote_content.yaml index 73e4d9cfa..fb1ce4bdc 100644 --- a/openapi/consumed/api_remote_content.yaml +++ b/openapi/consumed/api_remote_content.yaml @@ -1,7 +1,7 @@ openapi: 3.0.1 info: title: Remote Content - Server implementation - version: 9.7.0 + version: 1.0.0 servers: - url: / paths: From e395b5bc0a0f0c48a9856bbf9e59a8b0bf1793cd Mon Sep 17 00:00:00 2001 From: garma00 Date: Mon, 27 Nov 2023 11:10:09 +0100 Subject: [PATCH 07/12] Fix names --- openapi/consumed/api_remote_content.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openapi/consumed/api_remote_content.yaml b/openapi/consumed/api_remote_content.yaml index fb1ce4bdc..1a7d87fa8 100644 --- a/openapi/consumed/api_remote_content.yaml +++ b/openapi/consumed/api_remote_content.yaml @@ -77,7 +77,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoteContentMessage' + $ref: '#/components/schemas/RemoteContentDetails' text/json: example: "attachments: [], \ncustom_property: \"a custom property\"\ \ \ncustom_property_2: 42 \n" @@ -342,7 +342,7 @@ components: markdown: type: string description: The markdown content to be rendered in App - RemoteContentMessage: + RemoteContentDetails: type: object properties: attachments: @@ -351,7 +351,8 @@ components: $ref: '#/components/schemas/RemoteContentAttachment' details: type: object - $ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/RemoteContentMessage" + # $ref: "../../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/RemoteContentDetails" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/RemoteContentDetails" additionalProperties: true RemoteContentAttachment: required: From d5abbc39ee98e9c6ab652e89d691c6d0574e3708 Mon Sep 17 00:00:00 2001 From: garma00 Date: Mon, 27 Nov 2023 11:31:06 +0100 Subject: [PATCH 08/12] Remove unused comment --- openapi/consumed/api_remote_content.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/openapi/consumed/api_remote_content.yaml b/openapi/consumed/api_remote_content.yaml index 1a7d87fa8..14fae2d1b 100644 --- a/openapi/consumed/api_remote_content.yaml +++ b/openapi/consumed/api_remote_content.yaml @@ -351,7 +351,6 @@ components: $ref: '#/components/schemas/RemoteContentAttachment' details: type: object - # $ref: "../../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/RemoteContentDetails" $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/RemoteContentDetails" additionalProperties: true RemoteContentAttachment: From 025fea988c3670598be54ec8acc1d8bc454faac0 Mon Sep 17 00:00:00 2001 From: garma00 Date: Mon, 27 Nov 2023 11:44:25 +0100 Subject: [PATCH 09/12] Remove additionalProperties --- openapi/consumed/api_remote_content.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/openapi/consumed/api_remote_content.yaml b/openapi/consumed/api_remote_content.yaml index 14fae2d1b..861ff65cc 100644 --- a/openapi/consumed/api_remote_content.yaml +++ b/openapi/consumed/api_remote_content.yaml @@ -352,7 +352,6 @@ components: details: type: object $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/RemoteContentDetails" - additionalProperties: true RemoteContentAttachment: required: - id From 07dcb58dd3d28db8662036ca665f811b53be259a Mon Sep 17 00:00:00 2001 From: garma00 Date: Tue, 28 Nov 2023 10:33:35 +0100 Subject: [PATCH 10/12] Update fn-commons version for remote references --- api_backend.yaml | 204 +++++++++++++++++++++++------------------------ 1 file changed, 102 insertions(+), 102 deletions(-) diff --git a/api_backend.yaml b/api_backend.yaml index a3aec63e7..e6e602e21 100644 --- a/api_backend.yaml +++ b/api_backend.yaml @@ -989,211 +989,211 @@ paths: definitions: # Definitions from the digital citizenship APIs AcceptedTosVersion: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/AcceptedTosVersion" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/AcceptedTosVersion" AppVersion: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/AppVersion" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/AppVersion" BlockedInboxOrChannels: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/BlockedInboxOrChannels" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/BlockedInboxOrChannels" DepartmentName: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/DepartmentName" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/DepartmentName" EmailAddress: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/EmailAddress" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/EmailAddress" PreferredLanguage: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PreferredLanguage" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PreferredLanguage" PreferredLanguages: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PreferredLanguages" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PreferredLanguages" Profile: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/Profile" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/Profile" ExtendedProfile: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ExtendedProfile" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ExtendedProfile" FiscalCode: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/FiscalCode" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/FiscalCode" IsEmailEnabled: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/IsEmailEnabled" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/IsEmailEnabled" IsInboxEnabled: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/IsInboxEnabled" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/IsInboxEnabled" IsEmailValidated: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/IsEmailValidated" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/IsEmailValidated" IsEmailAlreadyTaken: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/IsEmailAlreadyTaken" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/IsEmailAlreadyTaken" UpdateProfile412ErrorTypes: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/problemJson_definitions.yaml#/UpdateProfile412ErrorTypes" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/problemJson_definitions.yaml#/UpdateProfile412ErrorTypes" ReminderStatus: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ReminderStatus" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ReminderStatus" PushNotificationsContentType: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PushNotificationsContentType" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PushNotificationsContentType" IsTestProfile: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/IsTestProfile" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/IsTestProfile" IsWebhookEnabled: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/IsWebhookEnabled" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/IsWebhookEnabled" LimitedProfile: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/LimitedProfile" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/LimitedProfile" MessageBodyMarkdown: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageBodyMarkdown" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageBodyMarkdown" MessageContent: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageContent" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageContent" MessageResponseNotificationStatus: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageResponseNotificationStatus" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageResponseNotificationStatus" NotificationChannelStatusValue: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/NotificationChannelStatusValue" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/NotificationChannelStatusValue" NotificationChannel: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/NotificationChannel" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/NotificationChannel" MessageSubject: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageSubject" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageSubject" MessageContentBase: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageContentBase" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageContentBase" EUCovidCert: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/EUCovidCert" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/EUCovidCert" OrganizationFiscalCode: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/OrganizationFiscalCode" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/OrganizationFiscalCode" NewMessageContent: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/NewMessageContent" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/NewMessageContent" Payee: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/Payee" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/Payee" PaymentDataBase: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaymentDataBase" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaymentDataBase" PaymentDataWithRequiredPayee: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaymentDataWithRequiredPayee" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaymentDataWithRequiredPayee" OrganizationName: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/OrganizationName" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/OrganizationName" PaginationResponse: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaginationResponse" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaginationResponse" PrescriptionData: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PrescriptionData" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PrescriptionData" ProblemJson: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ProblemJson" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ProblemJson" ServiceId: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServiceId" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServiceId" ServiceName: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServiceName" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServiceName" ServicePublic: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServicePublic" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServicePublic" ServiceMetadata: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServiceMetadata" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServiceMetadata" CommonServiceMetadata: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CommonServiceMetadata" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CommonServiceMetadata" StandardServiceMetadata: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/StandardServiceMetadata" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/StandardServiceMetadata" SpecialServiceMetadata: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/SpecialServiceMetadata" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/SpecialServiceMetadata" ServiceTuple: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServiceTuple" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServiceTuple" ServiceScope: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServiceScope" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServiceScope" ServiceCategory: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServiceCategory" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServiceCategory" SpecialServiceCategory: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/SpecialServiceCategory" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/SpecialServiceCategory" StandardServiceCategory: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/StandardServiceCategory" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/StandardServiceCategory" PaginatedServiceTupleCollection: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaginatedServiceTupleCollection" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaginatedServiceTupleCollection" Timestamp: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/Timestamp" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/Timestamp" PaymentNoticeNumber: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaymentNoticeNumber" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaymentNoticeNumber" PaymentAmount: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaymentAmount" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaymentAmount" PaymentData: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaymentData" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaymentData" TimeToLiveSeconds: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/TimeToLiveSeconds" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/TimeToLiveSeconds" CreatedMessageWithContent: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CreatedMessageWithContent" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CreatedMessageWithContent" CreatedMessageWithoutContent: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CreatedMessageWithoutContent" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CreatedMessageWithoutContent" CreatedMessageWithoutContentCollection: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CreatedMessageWithoutContentCollection" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CreatedMessageWithoutContentCollection" PaginatedCreatedMessageWithoutContentCollection: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaginatedCreatedMessageWithoutContentCollection" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaginatedCreatedMessageWithoutContentCollection" UserDataProcessingStatus: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/UserDataProcessingStatus" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/UserDataProcessingStatus" UserDataProcessingChoice: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/UserDataProcessingChoice" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/UserDataProcessingChoice" UserDataProcessingChoiceRequest: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/UserDataProcessingChoiceRequest" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/UserDataProcessingChoiceRequest" UserDataProcessing: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/UserDataProcessing" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/UserDataProcessing" MessageResponseWithContent: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageResponseWithContent" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageResponseWithContent" ServicePreferencesSettings: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServicePreferencesSettings" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServicePreferencesSettings" ServicesPreferencesMode: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServicesPreferencesMode" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServicesPreferencesMode" BasicServicePreference: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/BasicServicePreference" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/BasicServicePreference" ServicePreference: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ServicePreference" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ServicePreference" UpsertServicePreference: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/UpsertServicePreference" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/UpsertServicePreference" EnrichedMessage: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/EnrichedMessage" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/EnrichedMessage" PublicMessage: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PublicMessage" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PublicMessage" PublicMessagesCollection: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PublicMessagesCollection" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PublicMessagesCollection" PaginatedPublicMessagesCollection: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PaginatedPublicMessagesCollection" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PaginatedPublicMessagesCollection" MessageCategory: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageCategory" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageCategory" MessageCategoryBase: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageCategoryBase" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageCategoryBase" MessageCategoryPayment: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageCategoryPayment" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageCategoryPayment" LegalMessageWithContent: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/LegalMessageWithContent" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/LegalMessageWithContent" MessageCategoryPN: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageCategoryPN" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageCategoryPN" LegalMessage: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/LegalMessage" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/LegalMessage" ThirdPartyData: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ThirdPartyData" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ThirdPartyData" ThirdPartyMessageWithContent: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ThirdPartyMessageWithContent" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ThirdPartyMessageWithContent" ThirdPartyMessage: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ThirdPartyMessage" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ThirdPartyMessage" ThirdPartyAttachment: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ThirdPartyAttachment" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ThirdPartyAttachment" ThirdPartyMessagePrecondition: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/ThirdPartyMessagePrecondition" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/ThirdPartyMessagePrecondition" RemoteContentDetails: $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/RemoteContentDetails" LegalMessageEml: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/LegalMessageEml" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/LegalMessageEml" LegalMessageCertData: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/LegalMessageCertData" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/LegalMessageCertData" CertData: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CertData" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CertData" CertDataHeader: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CertDataHeader" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CertDataHeader" Attachment: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/Attachment" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/Attachment" LegalData: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/LegalData" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/LegalData" MessageStatusValue: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageStatusValue" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageStatusValue" RejectedMessageStatusValue: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/RejectedMessageStatusValue" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/RejectedMessageStatusValue" NotRejectedMessageStatusValue: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/NotRejectedMessageStatusValue" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/NotRejectedMessageStatusValue" MessageStatusAttributes: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageStatusAttributes" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageStatusAttributes" MessageStatusReadingChange: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageStatusReadingChange" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageStatusReadingChange" MessageStatusArchivingChange: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageStatusArchivingChange" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageStatusArchivingChange" MessageStatusBulkChange: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageStatusBulkChange" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageStatusBulkChange" MessageStatusChange: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/MessageStatusChange" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/MessageStatusChange" CreatedMessageWithContentResponse: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CreatedMessageWithContentResponse" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CreatedMessageWithContentResponse" CreatedMessageWithContentAndEnrichedData: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/CreatedMessageWithContentAndEnrichedData" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/CreatedMessageWithContentAndEnrichedData" Ulid: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/Ulid" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/Ulid" PathTraversalSafePathParam: - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.7.1/openapi/definitions.yaml#/PathTraversalSafePathParam" + $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/PathTraversalSafePathParam" # Definitions from pagopa-proxy PaymentProblemJson: $ref: "https://raw.githubusercontent.com/pagopa/io-pagopa-proxy/v1.6.0/api-spec/api-for-io.yaml#/definitions/PaymentProblemJson" From ad3550a5203ab30476ee3cce8b06658ea103542f Mon Sep 17 00:00:00 2001 From: garma00 Date: Tue, 28 Nov 2023 11:00:39 +0100 Subject: [PATCH 11/12] Fix RemoteContentDetails ambiguity --- openapi/consumed/api_remote_content.yaml | 35 ++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/openapi/consumed/api_remote_content.yaml b/openapi/consumed/api_remote_content.yaml index 861ff65cc..0a9f310f0 100644 --- a/openapi/consumed/api_remote_content.yaml +++ b/openapi/consumed/api_remote_content.yaml @@ -77,7 +77,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoteContentDetails' + $ref: '#/components/schemas/RemoteContentDetailsResponse' text/json: example: "attachments: [], \ncustom_property: \"a custom property\"\ \ \ncustom_property_2: 42 \n" @@ -342,7 +342,7 @@ components: markdown: type: string description: The markdown content to be rendered in App - RemoteContentDetails: + RemoteContentDetailsResponse: type: object properties: attachments: @@ -351,7 +351,36 @@ components: $ref: '#/components/schemas/RemoteContentAttachment' details: type: object - $ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.8.0/openapi/definitions.yaml#/RemoteContentDetails" + $ref: "#/components/schemas/RemoteContentDetails" + RemoteContentDetails: + type: object + properties: + markdown: + $ref: "#/components/schemas/MessageBodyMarkdown" + subject: + $ref: "#/components/schemas/MessageSubject" + required: + - markdown + - subject + MessageBodyMarkdown: + type: string + description: |- + The full version of the message, in plain text or Markdown format. + minLength: 80 + maxLength: 10000 + example: |- + # This is a markdown header + to show how easily markdown can be converted to **HTML** + Remember: this has to be a long text. + MessageSubject: + type: string + description: |- + The (optional) subject of the message - note that only some notification + channels support the display of a subject. When a subject is not provided, + one gets generated from the client attributes. + minLength: 10 + maxLength: 120 + example: Welcome new user ! RemoteContentAttachment: required: - id From 2ab2beab5d43f29d5394b91bc72de2812f8804c1 Mon Sep 17 00:00:00 2001 From: garma00 Date: Tue, 28 Nov 2023 11:53:48 +0100 Subject: [PATCH 12/12] Rename generation's script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3de70fd27..16e0b4fe3 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "generate:proxy:mitvoucher": "rimraf generated/mitvoucher && gen-api-models --api-spec api_mit_voucher.yaml --out-dir generated/mitvoucher", "generate:proxy:zendesk-models": "rimraf generated/zendesk && gen-api-models --api-spec api_zendesk.yaml --out-dir generated/zendesk", "generate:proxy:third-party-service": "rimraf generated/third-party-service && gen-api-models --api-spec openapi/consumed/api-third-party.yaml --out-dir generated/third-party-service --request-types --response-decoders --client", - "generate:proxy:remote_content_service": "rimraf generated/remote_content_service && gen-api-models --api-spec openapi/consumed/api_remote_content.yaml --out-dir generated/remote_content_service --request-types --response-decoders --client", + "generate:proxy:remote-content-service": "rimraf generated/remote-content-service && gen-api-models --api-spec openapi/consumed/api_remote_content.yaml --out-dir generated/remote-content-service --request-types --response-decoders --client", "generate:proxy:piattaforma-notifiche": "rimraf generated/piattaforma-notifiche && gen-api-models --api-spec openapi/consumed/api-piattaforma-notifiche.yaml --out-dir generated/piattaforma-notifiche --request-types --response-decoders --client", "generate:api:piattaforma-notifiche-courtesy": "rimraf generated/api_piattaforma-notifiche-courtesy && gen-api-models --api-spec api_pn.yaml --out-dir generated/api_piattaforma-notifiche-courtesy", "generate:proxy:piattaforma-notifiche-courtesy": "rimraf generated/piattaforma-notifiche-courtesy && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/pn-user-attributes/13b91a353f6a219c60d5cdadc023cc18c4157554/docs/openapi/pn-address-book-b2b-external-io-v1.yaml --out-dir generated/piattaforma-notifiche-courtesy --request-types --response-decoders --client",