You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a directly related question but I would appreciate your guidance. Now that type definitions are auto-generated, certain things are much clearer and certain things are not. Please take a look at stream event definition:
and serverless fails fast on functions.propagate.events[0].stream.arn': should be string with configValidationMode: 'error'. If I turn off configValidationMode, serverless package fails on EventSourceArn.split is not a function. This has been talked about long time ago here serverless/serverless#2365 and later fixed here serverless/serverless#3111.
So my question is - where to submit a PR or an Issue to get back those typed attributes into the generated type definitions? Adding type solved my problem but it would be nice if it was visible on the type def and thus accessible via auto-complete
This JSON schema definition can be improved to ensure generated type stills give you information on the expected type property. I give such an exemple in the PR I just opened.
In the future, do not hesitate to open a separate issue with your problem description (which was very clear by the way :) ).
Not a directly related question but I would appreciate your guidance. Now that type definitions are auto-generated, certain things are much clearer and certain things are not. Please take a look at
stream
event definition:I do this:
and serverless fails fast on
functions.propagate.events[0].stream.arn': should be string
withconfigValidationMode: 'error'
. If I turn offconfigValidationMode
, serverless package fails onEventSourceArn.split is not a function
. This has been talked about long time ago here serverless/serverless#2365 and later fixed here serverless/serverless#3111.The fix was simple - adding an explicit
type
attribute to the stream event definition. DefinitelyTyped has it (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/serverless/plugins/aws/provider/awsProvider.d.ts#L408):but it's lost in auto-generated types:
So my question is - where to submit a PR or an Issue to get back those typed attributes into the generated type definitions? Adding
type
solved my problem but it would be nice if it was visible on the type def and thus accessible via auto-completeThanks!
Originally posted by @pveller in #38 (comment)
The text was updated successfully, but these errors were encountered: