serverless-operations/serverless-step-functions

Support Request Validation API Gateway Feature

Open

#243 建立於 2019年8月14日

在 GitHub 查看
 (0 留言) (15 反應) (0 負責人)JavaScript (954 star) (189 fork)batch import
area: api-gatewayenhancementhelp wanted

描述

This is a Feature Proposal

Description

The API Gateway Request Validation is now supported by Serverless framework:

functions:
  create-something:
    handler: functions/create-something.handler
    events:
      - http:
          path: ${self:custom.version}/things
          method: post
          request:
            schema:
              application/json: ${file(thing.schema.json)}

However, seems the plugin does not support when trying to add the same configuration inside of an event:

stepFunctions:
  stateMachines:
    create-things:
      events:
        - http:
            path: ${self:custom.version}/things
            method: post
            request:
              schema:
                application/json: ${file(thing.schema.json)}

Additional Data

  • Serverless Framework Core Version you're using: latest
  • The Plugin Version you're using: latest
  • Operating System: N/A
  • Stack Trace: N/A
  • Provider Error messages: N/A

貢獻者指南