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

Support mustache templates in all string fields generate::config #2646

Closed
tusharmath opened this issue Aug 11, 2024 · 5 comments · Fixed by #2657
Closed

Support mustache templates in all string fields generate::config #2646

tusharmath opened this issue Aug 11, 2024 · 5 comments · Fixed by #2657

Comments

@tusharmath
Copy link
Contributor

tusharmath commented Aug 11, 2024

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 tusharmath changed the title Support mustache templates in all string fields generate::config Support mustache templates in all string fields generate::config Aug 11, 2024
@tusharmath
Copy link
Contributor Author

/bounty 50$

Copy link

algora-pbc bot commented Aug 11, 2024

💎 $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

@dekkku
Copy link
Contributor

dekkku commented Aug 11, 2024

/attempt #2646

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

Copy link

algora-pbc bot commented Aug 11, 2024

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

Copy link

algora-pbc bot commented Aug 30, 2024

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

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