typescript
typescript copied to clipboard
Solving definitions issues
Solving issues listed in https://github.com/serverless/typescript/README.md with solution for discontinued maintenance of json-schema-to-typescript -> https://github.com/bcherny/json-schema-to-typescript/issues/347
Switching to quicktype ? -> https://github.com/quicktype/quicktype -> https://dev.to/okeeffed/generating-types-from-json-schema-with-quicktype-1fh2
Issue on custom property not accepting additional properties : https://github.com/quicktype/quicktype/issues/1615
it seems that s3 event definition is not correctly converted
https://github.com/serverless/typescript/blob/master/index.d.ts#L164
should be
s3:
| string
| {
bucket: string | AwsCfFunction;
event?: string;
existing?: boolean;
rules?: {
suffix?: string;
}[] | {
prefix?: string;
}[];
};
}
as AJV schema wants only 1 property
Configuration warning at 'functions.lambda_name.events[0].s3.rules[0]': should NOT have more than 1 properties