Skip to content

Commit

Permalink
fix(Config Schema): Bring back non-array supported variants
Browse files Browse the repository at this point in the history
They were removed by mistake with #8319.
It's only primitive/array combinations where singular variant should be removed. object/array should be left intact
  • Loading branch information
medikoo committed Oct 8, 2020
1 parent f235041 commit d8adc11
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/plugins/aws/provider/awsProvider.js
Expand Up @@ -304,7 +304,11 @@ class AwsProvider {
],
},
awsIamPolicyResource: {
anyOf: [{ const: '*' }, { type: 'array', items: { $ref: '#/definitions/awsArn' } }],
anyOf: [
{ const: '*' },
{ $ref: '#/definitions/awsArn' },
{ type: 'array', items: { $ref: '#/definitions/awsArn' } },
],
},
// Definition of Statement taken from https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html#policies-grammar-bnf
awsIamPolicyStatements: {
Expand Down Expand Up @@ -473,8 +477,14 @@ class AwsProvider {
identitySource: { $ref: '#/definitions/awsCfInstruction' },
issuerUrl: { $ref: '#/definitions/awsCfInstruction' },
audience: {
type: 'array',
items: { $ref: '#/definitions/awsCfInstruction' },
anyOf: [
{ $ref: '#/definitions/awsCfInstruction' },
{
type: 'array',
items: { $ref: '#/definitions/awsCfInstruction' },
additionalItems: false,
},
],
},
},
required: ['identitySource', 'issuerUrl', 'audience'],
Expand Down

0 comments on commit d8adc11

Please sign in to comment.