title: Fixing serverless typescript, Types of property 'event' are incompatible?
body: <p>I've upgraded to serverless 3, running typescript. There is a type match error in the serverless configuration files since.</p>
  <p>Partially my serverless.ts file is</p>
  <pre><code>const serverlessConfiguration: Serverless = {
  service: 'hello',
  frameworkVersion: '3',
  useDotenv: true,
  
  plugins: ['serverless-webpack', 'serverless-domain-manager', 'serverless-iam-roles-per-function', 'serverless-certificate-creator'],
  provider: {
      name: 'aws',
      runtime: 'nodejs14.x',
      region: 'ap-southeast-2',
      apiGateway: {
          minimumCompressionSize: 1024,
          shouldStartNameWithService: true,
      },
      environment: {
          AWS_NODEJS_CONNECTION_REUSE_ENABLED: '1',
      },
  },
  functions: {hello},
  custom: {
  </code></pre>
  <p>There is something wrong with the schema of hello/index.ts file is</p>
  <pre><code>import schema from './schema';
  import { handlerPath } from '@libs/handlerResolver';
  
  export default {
    handler: `${handlerPath(__dirname)}/handler.main`,
    events: [
     {
       http: {
         method: 'post',
         path: 'hello',
         private: false,
         request: {
           schemas: {
             'application/json': schema
          }
        }
      }
    }
   ]
  </code></pre>
  <p>}</p>
  <p>I've read that http.request.schema has been replaced by <a href="https://www.serverless.com/framework/docs/deprecations" rel="nofollow noreferrer">http.request.schemas</a></p>
  <p>The error message I'm getting is</p>
  <pre><code>  Type '{ schemas: { 'application/json': { readonly type: &quot;object&quot;; readonly properties: { readonly name: { readonly type: &quot;string&quot;; }; }; readonly required: readonly [&quot;name&quot;]; }; }; }' has no properties in common with type 'HttpRequestValidation'.
  </code></pre>