Skip to content

Commit

Permalink
fix: Add targetArn to configuration schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayyow committed Mar 2, 2024
1 parent 98b4558 commit 963fa31
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,41 @@ class Plugin {
properties: {
deadLetter: {
type: 'object',
required: ['sqs'],
additionalProperties: true,
properties: {
sqs: {
type: 'object',
oneOf: [
{
required: ['sqs'],
additionalProperties: true,
required: ['queueName'],
properties: {
queueName: { type: 'string' },
messageRetentionPeriod: { type: 'number' },
visibilityTimeout: { type: 'number' }
sqs: {
type: 'object',
additionalProperties: true,
required: ['queueName'],
properties: {
queueName: { type: 'string' },
messageRetentionPeriod: { type: 'number' },
visibilityTimeout: { type: 'number' }
}
}
}
},
{
required: ['targetArn'],
properties: {
targetArn: {
oneOf: [
{ type: 'string' },
{
type: 'object',
required: ['GetResourceArn'],
properties: {
GetResourceArn: { type: 'string' }
}
}
]
}
}
}
}
]
}
}
})
Expand Down

0 comments on commit 963fa31

Please sign in to comment.