Issue Description: What’s happening?
CLI is not allowing me to deploy functions with -
in the name
Reproduce the Issue: What steps can someone take to replicate the problem?
8base.yml
...
myCondoCoverageWebHook:
handler:
code: src/modules/landing/my-condo-coverage-webhook.js
type: webhook
path: my-condo-coverage-webhook
method: POST
Expected Behavior: What did you expect to happen?
Allow -
in the path
Actual Behavior: What actually happened?
Is raising an error when I use a -
in the path
Hey alacret - did you get this sorted out?
No, sorry I didn’t kept trying. I’ll test tonight if the error persists
@sebastian.scholl I tested this today and still is rejecting the character -
functions:
#
# Using a default path, the deployed endpoint would
# be available when making an POST request to:
#
# https://api.8base.com/<WORKSPACE_ID>/webhook/githubwebhook/{asdjfhasldkfjh134513413}/
#
# Declare custom webhooks like so.
github-web-hook:
handler:
code: src/functions/github-web-hook.js
type: webhook
path: github-web-hook/{projectId}/
method: POST
github-webhook:
handler:
code: src/functions/github-webhook.js
type: webhook
path: github-webhook/{projectId}/
method: POST
error: Webhook github-web-hook path contains characters. Item must match regexp /^[_a-zA-Z0-9/{}]*$/
error: Time: 7,146 ms.