From 84909397635455a1a129e1b8e8a6e991fe6d8c54 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:47:09 +0100 Subject: [PATCH] Update latest OpenAPI spec (#9) --- openapi/emulators/localstack-spec-latest.yml | 54 +++++++++++++------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/openapi/emulators/localstack-spec-latest.yml b/openapi/emulators/localstack-spec-latest.yml index e79b224..e8ee056 100644 --- a/openapi/emulators/localstack-spec-latest.yml +++ b/openapi/emulators/localstack-spec-latest.yml @@ -21,13 +21,20 @@ servers: default: localhost.localstack.cloud components: parameters: - SesMessageId: - description: ID of the message (`id` field of SES message) + SesIdFilter: + description: Filter for the `id` field in SES message in: query name: id required: false schema: type: string + SesEmailFilter: + description: Filter for the `source` field in SES message + in: query + name: email + required: false + schema: + type: string SnsAccountId: description: '`accountId` field of the resource' in: query @@ -131,6 +138,26 @@ components: - completed - scripts type: object + SESDestination: + type: object + description: Possible destination of a SES message + properties: + ToAddresses: + type: array + items: + type: string + format: email + CcAddresses: + type: array + items: + type: string + format: email + BccAddresses: + type: array + items: + type: string + format: email + additionalProperties: false SesSentEmail: additionalProperties: false properties: @@ -146,7 +173,7 @@ components: - text_part type: object Destination: - type: string + $ref: '#/components/schemas/SESDestination' Id: type: string RawData: @@ -167,13 +194,7 @@ components: - Id - Region - Timestamp - - Destination - - RawData - Source - - Subject - - Template - - TemplateData - - Body type: object SessionInfo: additionalProperties: false @@ -624,7 +645,7 @@ paths: tags: - aws parameters: - - $ref: '#/components/parameters/SesMessageId' + - $ref: '#/components/parameters/SesIdFilter' responses: '204': description: Message was successfully discarded @@ -634,13 +655,8 @@ paths: tags: - aws parameters: - - $ref: '#/components/parameters/SesMessageId' - - description: Source of the message (`source` field of SES message) - in: query - name: email - required: false - schema: - type: string + - $ref: '#/components/parameters/SesIdFilter' + - $ref: '#/components/parameters/SesEmailFilter' responses: '200': content: @@ -791,7 +807,9 @@ paths: responses: '200': content: - text/xml: {} + text/xml: + schema: + $ref: '#/components/schemas/ReceiveMessageResult' application/json: schema: $ref: '#/components/schemas/ReceiveMessageResult'