Skip to content

Reduce confusion for "magic" binding expressions #167

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

Open
ejizba opened this issue Oct 9, 2023 · 1 comment
Open

Reduce confusion for "magic" binding expressions #167

ejizba opened this issue Oct 9, 2023 · 1 comment

Comments

@ejizba
Copy link
Contributor

ejizba commented Oct 9, 2023

We've had several people get confused by these (example 1, 2, 3). I think the main problem is that these are hard-coded string values that basically perform magic under the covers and the documentation is hard-to-find. Would be nice if we could add some Intellisense or helper methods to make it easier to understand.

Example binding expression:

const blobOutput = output.storageBlob({
  connection: "AzureWebJobsStorage",
  path: "helloworld/{DateTime:MM-dd-yyyy H:mm:ss}.json",
});

Example route parameter:

app.http('httpTrigger1', {
    methods: ['GET', 'POST'],
    authLevel: 'anonymous',
    route: 'httpTrigger1/{id}',
    handler: httpTrigger1
});
@Sarabadu
Copy link

I think it would be also good to note in docs that is not posible to set any of those values on runtime, you can only use binding parameters declared in the input, or binding expressions.

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

No branches or pull requests

2 participants