serverless-ide-vscode icon indicating copy to clipboard operation
serverless-ide-vscode copied to clipboard

http.request.schemas shown as invalid key in serverless.yml

Open mkraenz opened this issue 4 years ago • 3 comments

  • I'm submitting a ...

    • [x] bug report
    • [ ] feature request
    • [ ] support request => Please do not submit support request here, see note at the top of this template.
  • Do you want to request a feature or report a bug?

bug. Regression issue.

  • What is the current behavior?

Same as in https://github.com/threadheap/serverless-ide-vscode/issues/45. In serverless.yml, functions.mylambda.events.0.http.request.schemas displays [Serverless IDE] Unexpected property schemas

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.
functions:
  mylambda:
    handler: src/mylambda.handler
    events:
      - http:
          path: testpath
          method: post
          request:
            schemas:
              application/json:
                schema: ${file(src/mylambda.schema.json)}
                name: Myschema

The line schemas: displays the error as shown in the image

sls-schemas-error

  • What is the expected behavior?

Should be an expected property

Docs https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#request-schema-validators

  • Please tell us about your environment:

    • Plugin version: v0.5.32
    • VSCode version: 1.59.1
    • Template type: serverless.yml

PS: Thanks for the great plugin :)

mkraenz avatar Sep 03 '21 19:09 mkraenz

I'm facing the same issue, is there a chance @pavelvlasov you will look into this?

blazejkustra avatar Jul 06 '22 12:07 blazejkustra

I have the same issue here with the 0.5.34 plugin version.

jfollmann avatar Sep 01 '22 15:09 jfollmann

I'm facing this issue as well.

josep2 avatar Sep 29 '22 03:09 josep2

Will be fixed in the next release

pavelvlasov avatar Jan 27 '23 03:01 pavelvlasov