aws cloudwatchEvent event schema#8230
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8230 +/- ##
==========================================
- Coverage 88.16% 88.09% -0.07%
==========================================
Files 248 248
Lines 9430 9376 -54
==========================================
- Hits 8314 8260 -54
Misses 1116 1116
Continue to review full report at Codecov.
|
medikoo
left a comment
There was a problem hiding this comment.
Thank you @thewizarodofoz
It looks good! Please see my remarks, also let's remove corresponding inline validation
| type: 'object', | ||
| properties: { | ||
| event: { type: 'object' }, | ||
| input: { type: 'string', maxLength: 8192 }, |
There was a problem hiding this comment.
In implementation we support also object type
| type: 'object', | ||
| properties: { | ||
| inputPathsMap: { type: 'object' }, | ||
| inputTemplates: { type: 'string', maxLength: 8192 }, |
There was a problem hiding this comment.
It should be inputTemplate.
Also we're relying on same configuration in case of eventBridge event. It'll be nice to have both schemas matching.
See:
| additionalProperties: false, | ||
| }, | ||
| description: { type: 'string', maxLength: 512 }, | ||
| name: { type: 'string', pattern: '[a-zA-Z0-9-_.]+', maxLength: 64 }, |
There was a problem hiding this comment.
Let's also define minLength
medikoo
left a comment
There was a problem hiding this comment.
Thank you @thewizarodofoz it looks great! I have just one concern, please see my comment
| { required: ['input'] }, | ||
| { required: ['inputPath'] }, | ||
| { required: ['inputTransformer'] }, |
There was a problem hiding this comment.
I think we should also add required: [], as technically we do not require any of this options
medikoo
left a comment
There was a problem hiding this comment.
Thank you @thewizarodofoz !
Closes: #8026