SparkPost / SparkPost/developers.sparkpost.com

Iterate through object keys

Open
#325 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
API Blueprint
Stars
18
Forks
9
Avg merge
2d 1h
Merged PRs (30d)
3

Description

(Apologies if this is the wrong repo; landed here from https://github.com/SparkPost/sparkpost-api-documentation/blob/master/services/substitutions-reference.md)

Is there a way to iterate through object keys in the template language? For example, I want to output all keys in an object that have a non-zero value.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked substitutions-reference.md page and review how the template language handles object values. Determine whether iterating object keys and filtering non-zero values is supported, then update the documentation with the confirmed behavior or an example; done means the page answers this use case clearly.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.