Skip to content

Commit eae3122

Browse files
bboureDoyleBrendan
authored andcommitted
fix: log level validation (#643)
1 parent 041f64b commit eae3122

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/__tests__/validation/__snapshots__/base.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports[`Valdiation Domain Invalid should validate a useCloudFormation: not pres
3030
exports[`Valdiation Domain Invalid should validate a useCloudFormation: true, certificateArn or hostedZoneId is required 1`] = `"/domain: when using CloudFormation, you must provide either certificateArn or hostedZoneId."`;
3131

3232
exports[`Valdiation Log Invalid should validate a Invalid 1`] = `
33-
"/logging/level: must be one of 'ALL', 'ERROR' or 'NONE'
33+
"/logging/level: must be one of 'ALL', 'INFO', 'DEBUG', 'ERROR' or 'NONE'
3434
/logging/retentionInDays: must be integer
3535
/logging/excludeVerboseContent: must be boolean"
3636
`;

src/validation.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,9 @@ export const appSyncSchema = {
801801
roleArn: { $ref: '#/definitions/stringOrIntrinsicFunction' },
802802
level: {
803803
type: 'string',
804-
enum: ['ALL', 'ERROR', 'NONE'],
805-
errorMessage: "must be one of 'ALL', 'ERROR' or 'NONE'",
804+
enum: ['ALL', 'INFO', 'DEBUG', 'ERROR', 'NONE'],
805+
errorMessage:
806+
"must be one of 'ALL', 'INFO', 'DEBUG', 'ERROR' or 'NONE'",
806807
},
807808
retentionInDays: { type: 'integer' },
808809
excludeVerboseContent: { type: 'boolean' },

0 commit comments

Comments
 (0)