puppetlabs / puppetlabs/puppet-strings

Writes the delimiters for an empty attribute description

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

Nobody has claimed this yet.

bugfix
Dominant language
Ruby
Stars
90
Forks
90
PR merge metrics
No merged PRs in 30d

Description

Describe the Bug

If a Puppet Resource API type attribute has an empty description of '' or "" then that is literally what will be placed in the output instead of nil/an empty line.

Expected Behavior

A type attribute with an empty string for a description writes an empty line under its header and type.

Steps to Reproduce

  1. Change the descriptor of any attribute in a Puppet Resource API Type to an empty string.
  2. pdk bundle exec puppet strings generate --format markdown --out REFERENCE.md

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

Run pdk bundle exec puppet strings generate --format markdown --out REFERENCE.md with a Puppet Resource API type attribute whose descriptor is an empty string, then inspect the generated reference output. Trace how the attribute description is rendered under its header and type; done means empty descriptions produce an empty line rather than the literal quote delimiters.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.