tailcall icon indicating copy to clipboard operation
tailcall copied to clipboard

Support mustache templates in all `string` fields `generate::config`

Open tusharmath opened this issue 1 year ago • 5 comments

Config should support mustache templates everywhere there is a "String" type.

Technical Requirements

  • Templates should be able to resolve env variables.

Before

inputs:
- curl:
    src: https://example.com
    headers:
      user-agent: tailcall-v1
    fieldName: test
output: {}
schema: {}

After

inputs:
- curl:
    src: https://example.com
    headers:
      user-agent: "{{.env.USER}}"
    fieldName: test
output: {}
schema: {}
preset:
  inferTypeNames: true

tusharmath avatar Aug 11 '24 07:08 tusharmath

/bounty 50$

tusharmath avatar Aug 11 '24 07:08 tusharmath

💎 $50 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #2646 with your implementation plan
  2. Submit work: Create a pull request including /claim #2646 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall! 🧐 Checkout our guidelines before you get started. 💵 More about our bounty program.

Attempt Started (GMT+0) Solution
🟢 @dekkku Aug 11, 2024, 7:51:59 AM WIP
🟢 @ssddOnTop #2657

algora-pbc[bot] avatar Aug 11 '24 07:08 algora-pbc[bot]

/attempt #2646

Algora profile Completed bounties Tech Active attempts Options
@dekkku 2 tailcallhq bounties
Rust
Cancel attempt

dekkku avatar Aug 11 '24 07:08 dekkku

💡 @ssddOnTop submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Aug 11 '24 08:08 algora-pbc[bot]

🎉🎈 @ssddOnTop has been awarded $50! 🎈🎊

algora-pbc[bot] avatar Aug 30 '24 08:08 algora-pbc[bot]