Skip to content

Support Request Validation API Gateway Feature #243

@alp-garcia

Description

@alp-garcia

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @horike37@alp-garcia

        Issue actions

          Support Request Validation API Gateway Feature · Issue #243 · serverless-operations/serverless-step-functions