Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid type for parameter selectionPattern #593

Open
louis0802 opened this issue Oct 29, 2023 · 0 comments
Open

Invalid type for parameter selectionPattern #593

louis0802 opened this issue Oct 29, 2023 · 0 comments

Comments

@louis0802
Copy link

This is a Bug Report

Description

For bug reports:

  • What went wrong? Invalid type for parameter selectionPattern
  • What did you expect should have happened? The type should be string instead of int
  • What was the config you used?
stepFunctions:
  validate: true
  stateMachines: 	
    process:
      name: processStepMachine
      type: EXPRESS
      role:
        Fn::GetAtt: ["ProcessStateMachineRole", "Arn"]
      events:
        - http:
            path: /process
            method: post
            action: StartSyncExecution
            request:
              template:
                application/json: |
                  #set( $body = $util.escapeJavaScript($input.json('$')) )
                  {
                    "input": "$body",
                    "stateMachineArn": "arn:aws:states:${aws:region}:000000000000:stateMachine:processStepMachine"
                  }
      definition:
        StartAt: process
        States:
          process:
            Type: Task
            Resource:
              Fn::GetAtt: [process, Arn]
            End: true  
  • What stacktrace or error message from your provider did you see?
    CREATE_FAILED: ApiGatewayMethodProcessPost (AWS::ApiGateway::Method)
    Parameter validation failed:
    Invalid type for parameter selectionPattern, value: 200, type: <class 'int'>, valid types: <class 'str'>

Similar or dependent issues:

  • NA

Additional Data

  • Serverless Framework Core Version you're using: 3.34.0
  • The Plugin Version you're using: 3.17.0
  • Operating System: MacOS
  • Stack Trace:
  • Provider Error messages: Invalid type for parameter selectionPattern, value: 200, type: <class 'int'>, valid types: <class 'str'>

I checked the code and found it is defined in int not string. Does anyone face the same issue? Could I create PR for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant